foo.cc:1:24: warning: extra tokens at end of #include directive
1 | #include<bits/stdc++.h>.
| ^
foo.cc: In function ‘int main()’:
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 /nix/gcc-13.3.0/include/c++/13.3.0/queue:66,
from stdc++.h:157:
/nix/gcc-13.3.0/include/c++/13.3.0/bits/stl_queue.h:773:7: note: declared here
773 | pop()
| ^~~
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;
| ~~^~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/stl_queue.h:773:7: note: declared here
773 | pop()
| ^~~