Problem 3nplus1
User Tavern
Submission Time 2026-11-20 11:01:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:10: error: lvalue required as left operand of assignment
8 | if (x%2=0) {
| ^
3nplus1.cpp:9:8: error: expected ‘;’ before ‘cout’
9 | x=x/2
| ^
| ;
10 | cout<<x
| ~~~~
3nplus1.cpp:12:10: error: expected ‘;’ before ‘cout’
12 | x=3*x+1
| ^
| ;
13 | cout<<x
| ~~~~