Borderou de evaluare (job #722344)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Ciocolata (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 30 mai 2023 15:59:12 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:9:48: error: 'INT_MAX' was not declared in this scope
9 | int cer,n,a,I=0,M=0,maxim=0,maxnr=0,b,minim=INT_MAX;
| ^~~~~~~
main.cpp:3:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <fstream>
+++ |+#include <climits>
3 | using namespace std;
main.cpp:39:16: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
39 | if(minim>M-I)
| ^~
main.cpp:41:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
41 | a++;
| ^