Problem 3nplus1
User Alexis10
Submission Time 2023-11-08 14:08:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:19:9: error: unable to find numeric literal operator ‘operator""a’
19 | a=3a+1;
| ^~
3nplus1.cpp:21:12: error: ‘a’ was not declared in this scope
21 | cout << a;
| ^
3nplus1.cpp:24:1: error: expected ‘}’ at end of input
24 | }
| ^
3nplus1.cpp:8:13: note: to match this ‘{’
8 | if (n%2==0) {
| ^
3nplus1.cpp:24:1: error: expected ‘}’ at end of input
24 | }
| ^
3nplus1.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^