Borderou de evaluare (job #668626)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Nenepatrat (clasa a 9-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 11 oct. 2022 18:41:40 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:10:5: error: 'unsigned' specified with 'double'
10 | unsigned double i, n, k, s = 0;
| ^~~~~~~~
main.cpp:10:5: error: 'unsigned' specified with 'double'
main.cpp:10:5: error: 'unsigned' specified with 'double'
main.cpp:10:5: error: 'unsigned' specified with 'double'
main.cpp:15:13: error: invalid operands of types 'double' and 'double' to binary 'operator%'
15 | if(k%i == 0 && n%i != 0)
| ~^~
| | |
| | double
| double
main.cpp:15:25: error: invalid operands of types 'double' and 'double' to binary 'operator%'
15 | if(k%i == 0 && n%i != 0)
| ~^~
| | |
| | double
| double