Borderou de evaluare (job #705367)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Furnica1 (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Tema 21 clasa a 6-a | Status | evaluat |
Dată | 12 mar. 2023 21:35:53 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:9:36: error: expected unqualified-id before 'or' token
9 | int cer, n, v_u, v_o, v_c, ve, or, i,h,timp;
| ^~
main.cpp:16:9: error: 'h' was not declared in this scope
16 | h = timp = 0;
| ^
main.cpp:16:13: error: 'timp' was not declared in this scope; did you mean 'time'?
16 | h = timp = 0;
| ^~~~
| time
main.cpp:17:13: error: 'i' was not declared in this scope
17 | for(i = 0;i<n;i++){
| ^
main.cpp:18:18: error: expected primary-expression before 'or' token
18 | cin>>or>>ve;
| ^~
main.cpp:18:20: error: expected primary-expression before '>>' token
18 | cin>>or>>ve;
| ^~
main.cpp:26:19: error: expected primary-expression before 'or' token
26 | timp+=or * v_o;
| ^~
main.cpp:26:22: error: invalid type argument of unary '*' (have 'int')
26 | timp+=or * v_o;
| ^~~~~