Borderou de evaluare (job #3174090)
Utilizator | Data | 24 noiembrie 2023 12:29:35 | |
---|---|---|---|
Problema | Transport | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:1: error: expected ',' or ';' before 'int'
5 | int i, s, v[16001], rezultat, k, n, step, rez;
| ^~~
main.cpp: In function 'bool drive(int)':
main.cpp:9:14: error: 'n' was not declared in this scope
9 | while(i<=n)
| ^
main.cpp:11:12: error: 'v' was not declared in this scope
11 | if(v[i]>loc)
| ^
main.cpp:15:14: error: 'v' was not declared in this scope
15 | if(s+v[i]>loc)
| ^
main.cpp:24:13: error: 'k' was not declared in this scope
24 | if(rasp>k)
| ^
main.cpp: In function 'int main()':
main.cpp:32:10: error: 'n' was not declared in this scope
32 | fin>>n>>k;
| ^
main.cpp:32:13: error: 'k' was not declared in this scope
32 | fin>>n>>k;
| ^
main.cpp:35:14: error: 'v' was not declared in this scope
35 | fin>>v[i];
| ^
main.cpp:36:9: error: 's' was not declared in this scope
36 | s+=v[i];
| ^
main.cpp:39:18: error: 's' was not declared in this scope; did you mean 'st'?
39 | int st=1, dr=s;
| ^
| st
main.cpp:46:12: error: 'rezultat' was not declared in this scope
46 | rezultat= mij;
| ^~~~~~~~
main.cpp:52:11: error: 'rezultat' was not declared in this scope
52 | fout<<rezultat;
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !