Borderou de evaluare (job #3282951)
Utilizator | Data | 7 martie 2025 17:28:01 | |
---|---|---|---|
Problema | Subsecventa de suma maxima | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:8:31: error: 'INT_MIN' was not declared in this scope
8 | int Sc = 0, Sa = 0, max = INT_MIN, len = 0, lenA = 0, index = -1;
| ^~~~~~~
main.cpp:3:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <fstream>
+++ |+#include <climits>
3 |
main.cpp:15:13: error: 'lenA' was not declared in this scope
15 | lenA = len;
| ^~~~
main.cpp:15:20: error: 'len' was not declared in this scope
15 | lenA = len;
| ^~~
main.cpp:16:13: error: 'index' was not declared in this scope
16 | index = i - 1;
| ^~~~~
main.cpp:20:34: error: 'len' was not declared in this scope
20 | if (Sc + x > x) Sc += x, len++;
| ^~~
main.cpp:22:13: error: 'len' was not declared in this scope
22 | len = 0;
| ^~~
main.cpp:27:34: error: 'index' was not declared in this scope
27 | cout << max << ' ' << max - index + 1 << ' ' << index;
| ^~~~~
main.cpp:8:17: warning: unused variable 'Sa' [-Wunused-variable]
8 | int Sc = 0, Sa = 0, max = INT_MIN, len = 0, lenA = 0, index = -1;
| ^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !