Problem 3nplus1II
User JhoCyber
Submission Time 2024-12-23 15:16:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1II.cpp: In function ‘int main()’:
3nplus1II.cpp:8:14: error: invalid operands of types ‘float’ and ‘int’ to binary ‘operator%’
8 | if (n%2==0) n=n/2;
| ~^~
| | |
| | int
| float