Borderou de evaluare (job #3287783)
Utilizator | Data | 19 martie 2025 12:42:04 | |
---|---|---|---|
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:11:30: error: 'INT_MIN' was not declared in this scope
11 | int n,i,x,suma=0,sumamax=INT_MIN, nrmax=INT_MIN, nrelempoz=0, nrmaxpoz, finalmax,start, startmax ;
| ^~~~~~~
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:20:13: error: 'start' was not declared in this scope
20 | start=i+1;
| ^~~~~
main.cpp:25:13: error: 'finalmax' was not declared in this scope
25 | finalmax=i;
| ^~~~~~~~
main.cpp:26:13: error: 'startmax' was not declared in this scope
26 | startmax=start;
| ^~~~~~~~
main.cpp:26:22: error: 'start' was not declared in this scope
26 | startmax=start;
| ^~~~~
main.cpp:28:17: error: 'nrelempoz' was not declared in this scope
28 | if(x>0) nrelempoz++;
| ^~~~~~~~~
main.cpp:29:14: error: 'nrmax' was not declared in this scope
29 | if(x>nrmax)
| ^~~~~
main.cpp:32:13: error: 'nrmaxpoz' was not declared in this scope
32 | nrmaxpoz=i;
| ^~~~~~~~
main.cpp:36:8: error: 'nrelempoz' was not declared in this scope
36 | if(nrelempoz!=0) g<<sumamax<<' '<<startmax<<' '<<finalmax;
| ^~~~~~~~~
main.cpp:36:39: error: 'startmax' was not declared in this scope
36 | if(nrelempoz!=0) g<<sumamax<<' '<<startmax<<' '<<finalmax;
| ^~~~~~~~
main.cpp:36:54: error: 'finalmax' was not declared in this scope
36 | if(nrelempoz!=0) g<<sumamax<<' '<<startmax<<' '<<finalmax;
| ^~~~~~~~
main.cpp:38:12: error: 'nrmax' was not declared in this scope
38 | g<<nrmax<<' '<<nrmaxpoz<<' '<<nrmaxpoz;
| ^~~~~
main.cpp:38:24: error: 'nrmaxpoz' was not declared in this scope
38 | g<<nrmax<<' '<<nrmaxpoz<<' '<<nrmaxpoz;
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !