Borderou de evaluare (job #3165232)
Utilizator | Data | 5 noiembrie 2023 18:16:30 | |
---|---|---|---|
Problema | Subsecventa de suma maxima | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:16:13: error: 'INT_MIN' was not declared in this scope
16 | int n,sum = INT_MIN,st=1,dr=-1,x,sol=INT_MIN,solst,soldr;
| ^~~~~~~
main.cpp:7:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
6 | #include <vector>
+++ |+#include <climits>
7 |
main.cpp: In function 'int main()':
main.cpp:22:12: error: 'x' was not declared in this scope
22 | f>>x;
| ^
main.cpp:25:13: error: 'dr' was not declared in this scope
25 | dr = i;
| ^~
main.cpp:28:13: error: 'st' was not declared in this scope; did you mean 'std'?
28 | st = i;
| ^~
| std
main.cpp:31:18: error: 'sol' was not declared in this scope
31 | if(sum > sol){
| ^~~
main.cpp:33:13: error: 'solst' was not declared in this scope
33 | solst = st;
| ^~~~~
main.cpp:33:21: error: 'st' was not declared in this scope; did you mean 'std'?
33 | solst = st;
| ^~
| std
main.cpp:34:13: error: 'soldr' was not declared in this scope
34 | soldr = dr;
| ^~~~~
main.cpp:34:21: error: 'dr' was not declared in this scope
34 | soldr = dr;
| ^~
main.cpp:37:8: error: 'sol' was not declared in this scope
37 | g<<sol<<" "<<solst<<" "<<soldr;
| ^~~
main.cpp:37:18: error: 'solst' was not declared in this scope
37 | g<<sol<<" "<<solst<<" "<<soldr;
| ^~~~~
main.cpp:37:30: error: 'soldr' was not declared in this scope
37 | g<<sol<<" "<<solst<<" "<<soldr;
| ^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !