Borderou de evaluare (job #2971500)
Utilizator | Data | 27 ianuarie 2023 15:00:20 | |
---|---|---|---|
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:5: error: expected ',' or ';' before 'int'
10 | int n, v[MAX_LENGTH + 1], sp[MAX_LENGTH + 1];
| ^~~
main.cpp:11:12: error: 'n' was not declared in this scope
11 | fin >> n;
| ^
main.cpp:13:12: error: 'v' was not declared in this scope
13 | fin >> v[i];
| ^
main.cpp:15:5: error: 'sp' was not declared in this scope
15 | sp[0] = 0;
| ^~
main.cpp:16:13: error: 'v' was not declared in this scope
16 | sp[1] = v[1];
| ^
main.cpp:9:15: warning: unused variable 'MAX_LENGTH' [-Wunused-variable]
9 | const int MAX_LENGTH = 6000000
| ^~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !