Problem 3nplus1II
User lukedin13542
Submission Time 2023-05-22 22:15:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1II.cpp:3:19: error: expected unqualified-id before numeric constant
3 | typedef long long 11;
| ^~
3nplus1II.cpp: In function ‘int main()’:
3nplus1II.cpp:12:10: error: expected primary-expression before ‘==’ token
12 | if (n% == 1) n = n*3+1;
| ^~
3nplus1II.cpp:13:13: error: expected ‘;’ before ‘}’ token
13 | else n /=2
| ^
| ;
14 | }
| ~
3nplus1II.cpp:15:15: error: ‘end1’ was not declared in this scope
15 | cout << n << end1;
| ^~~~