Problem 3nplus1
User privatepolychoron
Submission Time 2024-01-27 18:19:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:9:15: error: ‘n’ was not declared in this scope
9 | long int r = n % 2;
| ^
3nplus1.cpp:17:14: error: unable to find numeric literal operator ‘operator""n’
17 | long int n = 3n + 1;
| ^~
3nplus1.cpp:21:9: error: ‘n’ was not declared in this scope; did you mean ‘n1’?
21 | }while (n => 1)
| ^
| n1
3nplus1.cpp:21:12: error: expected primary-expression before ‘>’ token
21 | }while (n => 1)
| ^
3nplus1.cpp:21:16: error: expected ‘;’ before ‘return’
21 | }while (n => 1)
| ^
| ;
22 |
23 | return 0;
| ~~~~~~