Problem 3nplus1
User Syw
Submission Time 2025-11-12 14:12:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int32_t main()’:
3nplus1.cpp:10:17: error: expected primary-expression before ‘==’ token
10 | if (isEven(x) == true;){
| ^~
3nplus1.cpp:10:24: error: expected ‘)’ before ‘;’ token
10 | if (isEven(x) == true;){
| ~ ^
| )
3nplus1.cpp:10:25: error: expected primary-expression before ‘)’ token
10 | if (isEven(x) == true;){
| ^
3nplus1.cpp:13:5: error: ‘else’ without a previous ‘if’
13 | } else {
| ^~~~
3nplus1.cpp:16:13: error: expected ‘;’ before ‘}’ token
16 | cout << x
| ^
| ;
17 | }
| ~