Problem i_am_steve
User pseudocoder101
Submission Time 2025-08-20 16:37:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

i_am_steve.cpp:3:9: error: ‘stack’ does not name a type; did you mean ‘obstack’?
3 | typedef stack vec;
| ^~~~~
| obstack
i_am_steve.cpp: In function ‘int main()’:
i_am_steve.cpp:9:2: error: ‘vec’ was not declared in this scope
9 | vec<pq> hmap;
| ^~~
i_am_steve.cpp:9:8: error: expected primary-expression before ‘>’ token
9 | vec<pq> hmap;
| ^
i_am_steve.cpp:9:10: error: ‘hmap’ was not declared in this scope
9 | vec<pq> hmap;
| ^~~~
i_am_steve.cpp:11:20: error: ‘begin’ was not declared in this scope
11 | for (const char i:a){
| ^
i_am_steve.cpp:11:20: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from i_am_steve.cpp:1:
/usr/include/c++/9/valarray:1224:5: note: ‘std::begin’
1224 | begin(const valarray<_Tp>&