Borderou de evaluare (job #766222)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Subsecvență circulară de sumă maximă | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 3 mar. 2024 23:18:25 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:23: error: 'INT_MIN' was not declared in this scope
8 | int n, i, scmax, smax=INT_MIN, smin=INT_MAX, scmin, s;
| ^~~~~~~
main.cpp:3:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <fstream>
+++ |+#include <climits>
3 | using namespace std;
main.cpp: In function 'int kadane_circ()':
main.cpp:46:5: error: 's' was not declared in this scope
46 | s=prim->num;
| ^
main.cpp:56:5: error: 'scmin' was not declared in this scope
56 | scmin=prim->num;
| ^~~~~
main.cpp:57:5: error: 'smin' was not declared in this scope
57 | smin=prim->num;
| ^~~~