Problem 3nplus1II
User TONat1298
Submission Time 2025-08-22 17:39:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1II.cpp: In function ‘int main()’:
3nplus1II.cpp:7:6: error: expected ‘(’ before ‘a’
7 | if a%2 = 1 {
| ^
| (
3nplus1II.cpp:10:3: error: ‘else’ without a previous ‘if’
10 | else a%2 = 0 {
| ^~~~
3nplus1II.cpp:10:14: error: lvalue required as left operand of assignment
10 | else a%2 = 0 {
| ^