Borderou de evaluare (job #2229478)
Utilizator | Data | 6 august 2018 21:23:28 | |
---|---|---|---|
Problema | Cifre 5 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:15:17: error: invalid operands of types ‘long double’ and ‘int’ to binary ‘operator%’
if(n%10==0){
~^~~
user.cpp:18:23: error: invalid operands of types ‘long double’ and ‘int’ to binary ‘operator%’
}else if(n%10==1){
~^~~
user.cpp:21:23: error: invalid operands of types ‘long double’ and ‘int’ to binary ‘operator%’
}else if(n%10==2){
~^~~
user.cpp:24:23: error: invalid operands of types ‘long double’ and ‘int’ to binary ‘operator%’
}else if(n%10==3){
~^~~
user.cpp:27:23: error: invalid operands of types ‘long double’ and ‘int’ to binary ‘operator%’
}else if(n%10==4){
~^~~
user.cpp:30:23: error: invalid operands of types ‘long double’ and ‘int’ to binary ‘operator%’
}else if(n%10==5){
~^~~
user.cpp:33:23: error: invalid operands of types ‘long double’ and ‘int’ to binary ‘operator%’
}else if(n%10==6){
~^~~
user.cpp:36:23: error: invalid operands of types ‘long double’ and ‘int’ to binary ‘operator%’
}else if(n%10==7){
~^~~
user.cpp:39:23: error: invalid operands of types ‘long double’ and ‘int’ to binary ‘operator%’
}else if(n%10==8){
~^~~
user.cpp:52:13: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
if(n!=888 & n!=999){
~^~~~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !