Problem | sumstack |
---|---|
User | fei |
Submission Time | 2025-06-18 09:15:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumstack.cpp: In function ‘int main()’:
sumstack.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
sumstack.cpp:10:2: note: in expansion of macro ‘int’
10 | int Q; cin>>Q;
| ^~~
sumstack.cpp:10:6: error: ‘Q’ was not declared in this scope
10 | int Q; cin>>Q;
| ^
sumstack.cpp:3:18: error: template argument 1 is invalid
3 | #define int long long;
| ^~~~
sumstack.cpp:11:8: note: in expansion of macro ‘int’
11 | stack<int> stack;
| ^~~
sumstack.cpp:3:18: error: template argument 2 is invalid
3 | #define int long long;
| ^~~~
sumstack.cpp:11:8: note: in expansion of macro ‘int’
11 | stack<int> stack;
| ^~~
sumstack.cpp:11:11: error: expected primary-expression before ‘>’ token
11 | stack<int> st