Problem 3nplus1
User fanqie
Submission Time 2024-06-25 15:42:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int32_t main()’:
3nplus1.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
3nplus1.cpp:6:2: note: in expansion of macro ‘int’
6 | int n;
| ^~~
3nplus1.cpp:6:6: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | int n;
| ^
| yn
3nplus1.cpp:12:7: error: unable to find numeric literal operator ‘operator""n’
12 | n = 3n + 1;
| ^~
3nplus1.cpp:13:11: error: unable to find numeric literal operator ‘operator""n’
13 | cout << 3n+1;
| ^~