Problem prime
User TienKai
Submission Time 2024-02-12 17:27:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:10:15: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
10 | }else if(nah % 2 == 0){
| ~~~ ^ ~
| | |
| | int
| double
prime.cpp:15:11: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
15 | if(nah % i == 0){
| ~~~ ^ ~
| | |
| | int
| double