Problem | prime |
---|---|
User | joshua2152 |
Submission Time | 2023-11-11 12:20:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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
prime.cpp:16:1: error: expected ‘}’ at end of input
16 | }
| ^
prime.cpp:5:12: note: to match this ‘{’
5 | int main() {
| ^