Problem | prime |
---|---|
User | NgMinSong123 |
Submission Time | 2023-12-16 13:31:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prime.cpp: In function ‘int main()’:
prime.cpp:17:8: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
17 | if (a % 2 == 0) {
| ~ ^ ~
| | |
| | int
| double
prime.cpp:22:8: error: invalid operands of types ‘double’ and ‘double’ to binary ‘operator%’
22 | if(a % i == 0 && a != i) {
| ~ ^ ~
| | |
| | double
| double