Borderou de evaluare (job #641667)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cartier (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 18 mar. 2022 09:59:59 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int bloc(int)':
main.cpp:9:26: error: 'INT_MAX' was not declared in this scope
9 | int i, s=0, smin=INT_MAX, a, b, x;
| ^~~~~~~
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:12:18: error: incompatible types in assignment of 'int' to 'int [13000]'
12 | a=i;
| ~^~
main.cpp:13:17: error: 'b' was not declared in this scope
13 | b=n/i;
| ^
main.cpp:17:25: error: 'x' was not declared in this scope
17 | x=a;
| ^
main.cpp:21:16: error: 'x' was not declared in this scope
21 | return x;
| ^