0_0_35297738_31443.cpp: In function 'int main()': 0_0_35297738_31443.cpp:26:10: error: 'q' was not declared in this scope cout<<q.top()<<" "; ^ 0_0_35297738_31443.cpp:29:9: error: 'q' was not declared in this scope cout<<q.top()<<endl; ^