Problem 3nplus1
User itsLQ
Submission Time 2023-06-02 23:02:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp:4:26: error: expected constructor, destructor, or type conversion before ‘(’ token
4 | ios_base::sync_with_stdio(false);
| ^
3nplus1.cpp:5:1: error: ‘cin’ does not name a type; did you mean ‘sin’?
5 | cin.tie(NULL);
| ^~~
| sin
3nplus1.cpp:6:1: error: ‘cout’ does not name a type
6 | cout.tie(NULL);
| ^~~~
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:14:13: error: expected ‘;’ before ‘}’ token
14 | n = n / 2
| ^
| ;
15 | } else {
| ~
3nplus1.cpp:16:17: error: expected ‘;’ before ‘}’ token
16 | n = 3 * n + 1
| ^
| ;
17 | }
| ~