Borderou de evaluare (job #811762)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | League of Legends (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 26 feb. 2025 17:02:47 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int findClosest(int*, int, int)':
main.cpp:11:19: error: 'INT_MAX' was not declared in this scope
11 | int minDiff = INT_MAX;
| ^~~~~~~
main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
4 | #include <cmath>
+++ |+#include <climits>
5 |