0_0_35711189_28092.cpp: In function 'int main()': 0_0_35711189_28092.cpp:37:11: error: no match for 'operator+=' (operand types are 'int' and 'const value_type {aka const arr}') tine+=q.top(); ^