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

Compile Error

i_am_steve.cpp: In function ‘int main()’:
i_am_steve.cpp:11:22: error: request for member ‘begin’ in ‘a’, which is of non-class type ‘pq’ {aka ‘long long int’}
11 | for (const char i:a.begin(),a.end()){
| ^~~~~
i_am_steve.cpp:11:32: error: request for member ‘end’ in ‘a’, which is of non-class type ‘pq’ {aka ‘long long int’}
11 | for (const char i:a.begin(),a.end()){
| ^~~
i_am_steve.cpp:19:10: error: ‘class std::stack<long long int>’ has no member named ‘clear’
19 | hmap.clear();
| ^~~~~
i_am_steve.cpp:21:3: error: expected ‘}’ before ‘else’
21 | else{
| ^~~~
i_am_steve.cpp:14:20: note: to match this ‘{’
14 | }else if (i=='c'){
| ^
i_am_steve.cpp:22:9: error: ‘class std::stack<long long int>’ has no member named ‘clear’
22 | hmap.clear();
| ^~~~~