Problem 3nplus1II
User zandy21
Submission Time 2025-06-21 17:12:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
3nplus1II.cpp: In function ‘int main()’:
3nplus1II.cpp:9:6: error: expected ‘;’ before ‘if’
9 | t++
| ^
| ;
10 | if (x % 2 == 0) {
| ~~
3nplus1II.cpp:12:5: error: ‘else’ without a previous ‘if’
12 | } else {
| ^~~~