Problem prime
User Hengweezy
Submission Time 2024-01-31 22:30:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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