Problem 3nplus1
User MrPuddleVon
Submission Time 2025-06-16 15:32:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:9:10: error: unable to find numeric literal operator ‘operator""n’
9 | cout << 3n+1
| ^~
3nplus1.cpp:12:4: error: ‘else’ without a previous ‘if’
12 | } else {
| ^~~~
3nplus1.cpp:13:11: error: unable to find numeric literal operator ‘operator""n’
13 | cout << 3n+1;
| ^~
3nplus1.cpp:16:1: error: expected ‘}’ at end of input
16 | }
| ^
3nplus1.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^