Problem 3nplus1
User Ethan1L1K1X1
Submission Time 2024-04-08 08:50:37
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 a;
| ^~~
3nplus1.cpp:6:6: error: ‘a’ was not declared in this scope
6 | int a;
| ^
3nplus1.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
3nplus1.cpp:8:2: note: in expansion of macro ‘int’
8 | int x = a;
| ^~~
3nplus1.cpp:8:6: error: ‘x’ was not declared in this scope
8 | int x = a;
| ^
3nplus1.cpp:13:3: error: ‘else’ without a previous ‘if’
13 | else{
| ^~~~