Borderou de evaluare (job #790046)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Asort (baraj gimnaziu) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 16 oct. 2024 09:26:50 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int pozitie(unsigned int, unsigned int, unsigned int)':
main.cpp:26:7: error: expected ';' before 'for'
26 | .0
| ^
| ;
27 | // Apply the rule twice at most
28 | for (unsigned int i = 0; i < (R % 2 + 1); i++) {
| ~~~
main.cpp:26:5: warning: statement has no effect [-Wunused-value]
26 | .0
| ^~
main.cpp:28:30: error: 'i' was not declared in this scope
28 | for (unsigned int i = 0; i < (R % 2 + 1); i++) {
| ^
main.cpp:25:10: warning: unused variable 'isOdd' [-Wunused-variable]
25 | bool isOdd = (K == 1) || ((K % 2 != 0) && ((R % 2) == 0));
| ^~~~~