Problem divideby2
User thatlycheeoolongdrink
Submission Time 2024-08-05 15:46:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

divideby2.cpp: In function ‘int main()’:
divideby2.cpp:7:7: error: invalid operands of types ‘float’ and ‘int’ to binary ‘operator%’
7 | if (x%2==1) {
| ~^~
| | |
| | int
| float