Borderou de evaluare (job #583350)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Chibrituri (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 25 feb. 2021 20:10:05 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:5: error: scalar object 'cv' requires one element in initializer
3 | int cv = {4, 2, 2, 2, 3, 2, 3, 2, 4, 3}, co = {2, 0, 3, 3, 1, 3, 3, 1, 3, 3};
| ^~
main.cpp:3:42: error: scalar object 'co' requires one element in initializer
3 | int cv = {4, 2, 2, 2, 3, 2, 3, 2, 4, 3}, co = {2, 0, 3, 3, 1, 3, 3, 1, 3, 3};
| ^~
main.cpp: In function 'int main()':
main.cpp:11:9: error: 'h1' was not declared in this scope; did you mean 'hh'?
11 | h1 = hh/10;
| ^~
| hh
main.cpp:12:9: error: 'h2' was not declared in this scope; did you mean 'hh'?
12 | h2 = hh%10;
| ^~
| hh
main.cpp:15:13: error: 'm1' was not declared in this scope; did you mean 'm'?
15 | m1 = mm/10;
| ^~
| m
main.cpp:16:13: error: 'm2' was not declared in this scope; did you mean 'm'?
16 | m2 = mm%10;
| ^~
| m
main.cpp:17:13: error: 'sumv' was not declared in this scope
17 | sumv = cv[h1]+cv[h2]+cv[m1]+cv[m2];
| ^~~~
main.cpp:18:13: error: 'sumo' was not declared in this scope
18 | sumo = co[h1]+co[h2]+co[m1]+co[m2];
| ^~~~