Borderou de evaluare (job #779278)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Tai (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 2 iun. 2024 13:31:01 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int tai(const int&, int)':
main.cpp:32:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
32 | if( x/m10%10!=5)
| ^
main.cpp:40:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
40 | if(x%m10%10!=5)
| ^
main.cpp: In function 'int GetXnmax(int, int&)':
main.cpp:82:30: error: expected ';' before 'for'
82 | n3=(x%j)*(j/10)+j
| ^
| ;
83 | for(int i=10; i<ncf*10; i*=10)
| ~~~
main.cpp:83:27: error: 'i' was not declared in this scope
83 | for(int i=10; i<ncf*10; i*=10)
| ^
main.cpp:81:17: warning: unused variable 'temp' [-Wunused-variable]
81 | int temp=x%(j/10);
| ^~~~