Borderou de evaluare (job #3001585)
Utilizator | Data | 13 martie 2023 19:35:10 | |
---|---|---|---|
Problema | Inv | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:13:14: error: expected initializer before 's'
13 | int v[n] s[i] = {0};
| ^
main.cpp:15:15: error: 'v' was not declared in this scope
15 | in >> v[i];
| ^
main.cpp:20:16: error: 'v' was not declared in this scope
20 | if(v[i] < v[j])
| ^
main.cpp:21:17: error: 's' was not declared in this scope
21 | s[j]+= s[i] + 1;
| ^
main.cpp:27:14: error: 's' was not declared in this scope
27 | sum+=s[i];
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !