Borderou de evaluare (job #577833)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Sume | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 10 ian. 2021 11:05:19 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:17:19: error: 'INT_MIN' was not declared in this scope
17 | int bestSum = INT_MIN, sum = -1, lenght = 0;
| ^~~~~~~
main.cpp:2:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
1 | #include <fstream>
+++ |+#include <climits>
2 | #define nmax (int) 1e6
main.cpp:19:12: error: 'sum' was not declared in this scope
19 | if(sum < 0){
| ^~~
main.cpp:21:13: error: 'lenght' was not declared in this scope
21 | lenght = 0;
| ^~~~~~
main.cpp:23:9: error: 'sum' was not declared in this scope
23 | sum += arr[i];
| ^~~
main.cpp:24:9: error: 'lenght' was not declared in this scope
24 | lenght++;
| ^~~~~~