Borderou de evaluare (job #763174)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Trei Divizori (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 18 feb. 2024 15:08:58 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:25:36: error: invalid operands of types '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'} and 'double' to binary 'operator%'
25 | if(sqrt(nr)%j==0 || sqrt(nr)%(j+2)==0)
| ~~~~~~~~^~
| | |
| | double
| __gnu_cxx::__enable_if<true, double>::__type {aka double}
main.cpp:25:53: error: invalid operands of types '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'} and 'double' to binary 'operator%'
25 | if(sqrt(nr)%j==0 || sqrt(nr)%(j+2)==0)
| ~~~~~~~~^~~~~~
| | |
| | double
| __gnu_cxx::__enable_if<true, double>::__type {aka double}