Problem minstack
User Fet
Submission Time 2024-12-11 14:54:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp:1:1: error: ‘vector’ does not name a type
1 | vector<int> vec;
| ^~~~~~
minstack.cpp:3:1: error: ‘vector’ does not name a type
3 | vector<int> tru;
| ^~~~~~
minstack.cpp: In function ‘void push(int)’:
minstack.cpp:7:3: error: ‘tru’ was not declared in this scope
7 | tru.push_back(X);
| ^~~
minstack.cpp:8:3: error: ‘vec’ was not declared in this scope
8 | vec.push_back(q);
| ^~~
minstack.cpp:12:3: error: ‘tru’ was not declared in this scope
12 | tru.push_back(X);
| ^~~
minstack.cpp:13:3: error: ‘vec’ was not declared in this scope
13 | vec.push_back(q);
| ^~~
minstack.cpp:16:3: error: ‘tru’ was not declared in this scope
16 | tru.push_back(X);
| ^~~
minstack.cpp:17:3: error: ‘vec’ was not declared in this scope
17 | vec.push_back(q);
| ^~~
minstack.cpp: In function ‘void pop()’:
minstack