Borderou de evaluare (job #2860815)
Utilizator | Data | 3 martie 2022 09:36: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:9:37: error: 'INT_MIN' was not declared in this scope
9 | int n, a, s = 0, in = 1, maxx = INT_MIN, x = 1, y = 1;
| ^~~~~~~
main.cpp:2:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
1 | #include <fstream>
+++ |+#include <climits>
2 |
main.cpp:23:13: error: 'x' was not declared in this scope
23 | x = in;
| ^
main.cpp:24:13: error: 'y' was not declared in this scope
24 | y = i;
| ^
main.cpp:27:28: error: 'x' was not declared in this scope
27 | cout << maxx << " " << x << " " << y;
| ^
main.cpp:27:40: error: 'y' was not declared in this scope
27 | cout << maxx << " " << x << " " << y;
| ^
main.cpp:9:12: warning: unused variable 'a' [-Wunused-variable]
9 | int n, a, s = 0, in = 1, maxx = INT_MIN, x = 1, y = 1;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !