Problem 3nplus1
User Dcxz
Submission Time 2026-06-15 12:33:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:10:8: error: invalid operands of types ‘float’ and ‘int’ to binary ‘operator%’
10 | if (n%2 == 0) {
| ~^~
| | |
| | int
| float
3nplus1.cpp:15:34: error: expected ‘;’ before ‘}’ token
15 | cout << to_string(int(n)) + " "
| ^
| ;
16 | }
| ~