Problem 3nplus1
User griuehiruhigero
Submission Time 2023-06-18 16:29:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:5:2: error: expected initializer before ‘cin’
5 | cin >> n
| ^~~
3nplus1.cpp:9:3: error: ‘else’ without a previous ‘if’
9 | }else{
| ^~~~
3nplus1.cpp:10:3: error: ‘ok’ was not declared in this scope
10 | ok = 3 * n + 1;
| ^~
3nplus1.cpp:10:12: error: ‘n’ was not declared in this scope
10 | ok = 3 * n + 1;
| ^