Problem 3nplus1
User Dana
Submission Time 2023-11-08 15:26:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:6:9: error: expected primary-expression before ‘{’ token
6 | while ({
| ^
3nplus1.cpp:6:9: error: expected ‘)’ before ‘{’ token
6 | while ({
| ~^
| )
3nplus1.cpp:12:11: error: unable to find numeric literal operator ‘operator""n’
12 | cout << 3n+1;
| ^~
3nplus1.cpp:13:3: error: expected primary-expression before ‘)’ token
13 | })
| ^
3nplus1.cpp:15:10: error: expected ‘}’ at end of input
15 | return 0;
| ^
3nplus1.cpp:4:11: note: to match this ‘{’
4 | int main(){
| ^