Borderou de evaluare (job #2854235)
Utilizator | Data | 21 februarie 2022 08:41:13 | |
---|---|---|---|
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:10:19: error: 'INT_MIN' was not declared in this scope
10 | int bestSum = INT_MIN, sum = 0, beg, endx, idx;
| ^~~~~~~
main.cpp:3:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <fstream>
+++ |+#include <climits>
3 | using namespace std;
main.cpp:14:13: error: 'sum' was not declared in this scope
14 | if (sum < 0)
| ^~~
main.cpp:15:22: error: 'idx' was not declared in this scope
15 | sum = S, idx = i;
| ^~~
main.cpp:18:23: error: 'sum' was not declared in this scope
18 | if (bestSum < sum)
| ^~~
main.cpp:19:28: error: 'beg' was not declared in this scope
19 | bestSum = sum, beg = idx, endx = i;
| ^~~
main.cpp:19:34: error: 'idx' was not declared in this scope
19 | bestSum = sum, beg = idx, endx = i;
| ^~~
main.cpp:19:39: error: 'endx' was not declared in this scope
19 | bestSum = sum, beg = idx, endx = i;
| ^~~~
main.cpp:22:31: error: 'beg' was not declared in this scope
22 | fout << bestSum << " " << beg << " " << endx;
| ^~~
main.cpp:22:45: error: 'endx' was not declared in this scope
22 | fout << bestSum << " " << beg << " " << endx;
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !