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

Compile Error

3nplus1II.cpp: In function ‘int main()’:
3nplus1II.cpp:7:13: error: lvalue required as left operand of assignment
7 | if (a%2 = 1) {
| ^
3nplus1II.cpp:8:13: error: expected ‘;’ before ‘}’ token
8 | a = a*3+1
| ^
| ;
9 | };
| ~
3nplus1II.cpp:10:3: error: ‘else’ without a previous ‘if’
10 | else (a%2 = 0) {
| ^~~~
3nplus1II.cpp:10:15: error: lvalue required as left operand of assignment
10 | else (a%2 = 0) {
| ^