Problem | 3nplus1II |
---|---|
User | TONat1298 |
Submission Time | 2025-08-22 17:40:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:13: error: lvalue required as left operand of assignment
10 | if (a%2 = 0) {
| ^
3nplus1II.cpp:11:8: error: expected ‘;’ before ‘}’ token
11 | a= a//2
| ^
| ;
12 | }
| ~
3nplus1II.cpp:14:11: error: expected ‘;’ before ‘}’ token
14 | cout << a
| ^
| ;
15 | }
| ~