Borderou de evaluare (job #717231)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Vânător (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 28 apr. 2023 10:10:48 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:73:13: error: expected unqualified-id before numeric constant
73 | for(int 0;i<5;i++){
| ^
main.cpp:73:12: error: expected ';' before numeric constant
73 | for(int 0;i<5;i++){
| ^~
| ;
main.cpp:73:15: error: 'i' was not declared in this scope
73 | for(int 0;i<5;i++){
| ^
main.cpp:73:18: error: expected ')' before ';' token
73 | for(int 0;i<5;i++){
| ~ ^
| )
main.cpp:73:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
73 | for(int 0;i<5;i++){
| ^~~
main.cpp:73:19: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
73 | for(int 0;i<5;i++){
| ^
main.cpp:73:19: error: 'i' was not declared in this scope
main.cpp:72:11: warning: unused variable 'cost' [-Wunused-variable]
72 | short cost[10]={6,2,5,5,4,5,6,3,7,6};
| ^~~~