Problem brick
User Celest
Submission Time 2024-04-08 16:18:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int32_t main()’:
brick.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
brick.cpp:5:3: note: in expansion of macro ‘int’
5 | int n;
| ^~~
brick.cpp:5:7: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
5 | int n;
| ^
| yn
brick.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
brick.cpp:7:3: note: in expansion of macro ‘int’
7 | int a[n];
| ^~~
brick.cpp:7:7: error: ‘a’ was not declared in this scope
7 | int a[n];
| ^
brick.cpp:3:18: error: template argument 1 is invalid
3 | #define int long long;
| ^~~~
brick.cpp:8:9: note: in expansion of macro ‘int’
8 | stack<int> b;
| ^~~
brick.cpp: