Borderou de evaluare (job #3315459)
| Utilizator | Data | 14 octombrie 2025 10:18:08 | |
|---|---|---|---|
| Problema | Subsecventa de suma maxima | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:9:33: error: 'INT_MIN' was not declared in this scope
9 | int long long x[6000001],Smax = INT_MIN,S=-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:11:23: error: 'INT_MIN' was not declared in this scope
11 | int long long i,n,st =INT_MIN,dr = INT_MAX,start;
| ^~~~~~~
main.cpp:11:23: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
main.cpp: In function 'int main()':
main.cpp:23:12: error: 'S' was not declared in this scope
23 | if(S < 0)
| ^
main.cpp:25:11: error: 'start' was not declared in this scope
25 | start=i;
| ^~~~~
main.cpp:28:9: error: 'S' was not declared in this scope
28 | S += x[i] ;
| ^
main.cpp:31:26: error: 'start' was not declared in this scope
31 | Smax = S; st = start; dr = i;
| ^~~~~
main.cpp:31:33: error: 'dr' was not declared in this scope
31 | Smax = S; st = start; dr = i;
| ^~
main.cpp:33:42: error: 'dr' was not declared in this scope
33 | else if(S == Smax && i - start < dr - st)
| ^~
main.cpp:33:34: error: 'start' was not declared in this scope
33 | else if(S == Smax && i - start < dr - st)
| ^~~~~
main.cpp:38:34: error: 'dr' was not declared in this scope
38 | fout << Smax << st << " " << dr;
| ^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
