Borderou de evaluare (job #801210)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Bec | Compilator | cpp-32 |
Rundă | cexgj_10_olimpiada_locala | Status | evaluat |
Dată | 28 dec. 2024 14:53:32 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:15: error: 'INT_MAX' was not declared in this scope
12 | int c,xmin,pp=INT_MAX,cmax;
| ^~~~~~~
main.cpp:3:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
2 | #include<algorithm>
+++ |+#include <climits>
3 | using namespace std;
main.cpp: In function 'int main()':
main.cpp:25:14: error: 'cmax' was not declared in this scope
25 | if(c>cmax) cmax=c,xmin=w,pp=p[w];
| ^~~~
main.cpp:28:19: error: 'cmax' was not declared in this scope
28 | if(cer==1) g<<cmax;
| ^~~~