/in/foo.cc:1:24: warning: extra tokens at end of #include directive
1 | #include<bits/stdc++.h>.
| ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:14:30: error: invalid use of non-static member function 'void std::priority_queue<_Tp, _Sequence, _Compare>::pop() [with _Tp = int; _Sequence = std::vector<int>; _Compare = std::greater<int>]'
14 | t1=q.top();q.pop;
| ~~^~~
In file included from /usr/include/c++/12/queue:64,
from /usr/include/x86_64-linux-gnu/c++/12/bits/stdc++.h:86,
from /in/foo.cc:1:
/usr/include/c++/12/bits/stl_queue.h:773:7: note: declared here
773 | pop()
| ^~~
/in/foo.cc:15:30: error: invalid use of non-static member function 'void std::priority_queue<_Tp, _Sequence, _Compare>::pop() [with _Tp = int; _Sequence = std::vector<int>; _Compare = std::greater<int>]'
15 | t2=q.top();q.pop;
| ~~^~~
/usr/include/c++/12/bits/stl_queue.h:773:7: note: declared here
773 | pop()
| ^~~