Borderou de evaluare (job #2713946)
Utilizator | Data | 28 februarie 2021 22:35:59 | |
---|---|---|---|
Problema | Secventa 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:24: error: 'INT_MIN' was not declared in this scope
int n, sum, best_sum = INT_MIN, index, beg, fina, x, k, total_sum;
^~~~~~~
main.cpp: In function 'int main()':
main.cpp:11:17: error: 'k' was not declared in this scope
fin >> n >> k;
^
main.cpp:13:16: error: 'x' was not declared in this scope
fin >> x;
^
main.cpp:14:9: error: 'total_sum' was not declared in this scope
total_sum += x;
^~~~~~~~~
main.cpp:16:13: error: 'index' was not declared in this scope
index = i;
^~~~~
main.cpp:20:36: error: 'index' was not declared in this scope
if (sum >= best_sum && i - index >= k) {
^~~~~
main.cpp:21:13: error: 'beg' was not declared in this scope
beg = index;
^~~
main.cpp:22:13: error: 'fina' was not declared in this scope
fina = i;
^~~~
main.cpp:26:21: error: 'INT_MIN' was not declared in this scope
if (best_sum == INT_MIN) {
^~~~~~~
main.cpp:27:41: error: 'total_sum' was not declared in this scope
fout << 1 << " " << n << " " << total_sum;
^~~~~~~~~
main.cpp:30:17: error: 'beg' was not declared in this scope
fout << beg << " " << fina << " " << best_sum;
^~~
main.cpp:30:31: error: 'fina' was not declared in this scope
fout << beg << " " << fina << " " << best_sum;
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !