Problem prime
User joshua2152
Submission Time 2023-11-11 12:20:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:9:10: error: invalid operands of types ‘float’ and ‘int’ to binary ‘operator%’
9 | if (sn % i == 0) {
| ~~ ^ ~
| | |
| | int
| float