Borderou de evaluare (job #649477)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Joc11 (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 8 mai 2022 13:09:13 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:35:25: error: lvalue required as left operand of assignment
35 | if ( x != 6 && pion =0)
| ~~~~~~~^~~~~~~
main.cpp:24:16: warning: unused variable 'p1' [-Wunused-variable]
24 | int x, p1=1, p2=1, p=0, pion = 0;
| ^~
main.cpp:24:22: warning: unused variable 'p2' [-Wunused-variable]
24 | int x, p1=1, p2=1, p=0, pion = 0;
| ^~