Problem 3nplus1
User skibidininja98
Submission Time 2024-06-18 14:31:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:3:2: error: ‘cin’ was not declared in this scope
3 | cin >> x;
| ^~~
3nplus1.cpp:6:3: error: ‘else’ without a previous ‘if’
6 | else if (x % 2 == 0){
| ^~~~
3nplus1.cpp:7:13: error: expected ‘;’ before ‘}’ token
7 | x = x / 2}
| ^
| ;
3nplus1.cpp:9:8: error: unable to find numeric literal operator ‘operator""x’
9 | x = 3x + 1}
| ^~