/in/foo.cc:10:37: error: type/value mismatch at argument 3 in template parameter list for 'template<class _Tp, class _Sequence, class _Compare> class std::priority_queue'
priority_queue <int,vector<int>,cmp > q;
^
/in/foo.cc:10:37: note: expected a type, got 'cmp'
/in/foo.cc: In function 'int main()':
/in/foo.cc:22:5: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(i);
^~~~
/in/foo.cc:24:12: error: request for member 'empty' in 'q', which is of non-class type 'int'
while( !q.empty() ){
^~~~~
/in/foo.cc:25:9: error: request for member 'top' in 'q', which is of non-class type 'int'
st= q.top(); q.pop();
^~~
/in/foo.cc:25:19: error: request for member 'pop' in 'q', which is of non-class type 'int'
st= q.top(); q.pop();
^~~
/in/foo.cc:29:7: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(t[i]);
^~~~