Borderou de evaluare (job #3226270)
Utilizator | Data | 20 aprilie 2024 19:32:26 | |
---|---|---|---|
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:20: error: 'INT_MIN' was not declared in this scope
9 | int n, x,sum, maxi=INT_MIN, inds,indf,s;
| ^~~~~~~
main.cpp:4:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
3 | #include<cmath>
+++ |+#include <climits>
4 | using namespace std;
main.cpp: In function 'int main()':
main.cpp:17:26: error: 's' was not declared in this scope
17 | if(sum<0) sum=x, s=i;
| ^
main.cpp:23:13: error: 'indf' was not declared in this scope
23 | indf=i;
| ^~~~
main.cpp:24:13: error: 'inds' was not declared in this scope
24 | inds=s;
| ^~~~
main.cpp:24:18: error: 's' was not declared in this scope
24 | inds=s;
| ^
main.cpp:27:22: error: 'inds' was not declared in this scope
27 | fout<<maxi<<" "<<inds<<" "<<indf;
| ^~~~
main.cpp:27:33: error: 'indf' was not declared in this scope
27 | fout<<maxi<<" "<<inds<<" "<<indf;
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !