Borderou de evaluare (job #3227262)
Utilizator | Data | 28 aprilie 2024 20:51:24 | |
---|---|---|---|
Problema | Perle2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:16: error: 'INT_MIN' was not declared in this scope
5 | int st,dr,smax=INT_MIN,s=-1,start,n,k,i,a[100001];
| ^~~~~~~
main.cpp:2:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
1 | #include <fstream>
+++ |+#include <climits>
2 | using namespace std;
main.cpp: In function 'int main()':
main.cpp:8:8: error: 'n' was not declared in this scope
8 | f>>n>>k;
| ^
main.cpp:8:11: error: 'k' was not declared in this scope
8 | f>>n>>k;
| ^
main.cpp:9:9: error: 'i' was not declared in this scope
9 | for(i=1; i<=n; i++)
| ^
main.cpp:11:12: error: 'a' was not declared in this scope
11 | f>>a[i];
| ^
main.cpp:14:12: error: 's' was not declared in this scope; did you mean 'st'?
14 | if(s < 0)
| ^
| st
main.cpp:17:17: error: 'start' was not declared in this scope
17 | start = i;
| ^~~~~
main.cpp:19:9: error: 's' was not declared in this scope; did you mean 'st'?
19 | s=s+a[i];
| ^
| st
main.cpp:21:28: error: 'start' was not declared in this scope
21 | smax = s, st = start, dr = i;
| ^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !