Problem 3nplus1
User n
Submission Time 2024-02-19 13:45:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:10:11: error: unable to find numeric literal operator ‘operator""n’
10 | cout << 3n+1;
| ^~
3nplus1.cpp:12:2: error: expected ‘}’ at end of input
12 | }
| ^
3nplus1.cpp:6:15: note: to match this ‘{’
6 | while (n != 1){
| ^
3nplus1.cpp:12:2: error: expected ‘}’ at end of input
12 | }
| ^
3nplus1.cpp:3:12: note: to match this ‘{’
3 | int main (){
| ^