0_0_31304007_28861.cpp: In function 'int main()':
0_0_31304007_28861.cpp:23:30: error: no matching function for call to 'std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, cmp>::push(int&, int&)'
if(a==1) A.push(b,k);
^
0_0_31304007_28861.cpp:23:30: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:85,
from 0_0_31304007_28861.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::vector<std::pair<int, int> >; _Compare = cmp; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<int, int>]
push(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = std::pair<int, int>; _Sequence = std::vector<std::pair<int, int> >; _Compare = cmp; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<int, int>]
push(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: candidate expects 1 argument, 2 provided
0_0_31304007_28861.cpp:24:30: error: no matching function for call to 'std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, cmp>::push(int&, int&)'
if(a==2) B.push(b,k);
^
0_0_31304007_28861.cpp:24:30: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:85,
from 0_0_31304007_28861.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::vector<std::pair<int, int> >; _Compare = cmp; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<int, int>]
push(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = std::pair<int, int>; _Sequence = std::vector<std::pair<int, int> >; _Compare = cmp; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<int, int>]
push(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: candidate expects 1 argument, 2 provided
0_0_31304007_28861.cpp:25:30: error: no matching function for call to 'std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, cmp>::push(int&, int&)'
if(a==3) C.push(b,k);
^
0_0_31304007_28861.cpp:25:30: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:85,
from 0_0_31304007_28861.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::vector<std::pair<int, int> >; _Compare = cmp; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<int, int>]
push(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = std::pair<int, int>; _Sequence = std::vector<std::pair<int, int> >; _Compare = cmp; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<int, int>]
push(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: candidate expects 1 argument, 2 provided
0_0_31304007_28861.cpp:31:19: error: 'class std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, cmp>' has no member named 'second'
else cout<<A.second<<endl;
^
0_0_31304007_28861.cpp:35:19: error: 'class std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, cmp>' has no member named 'second'
else cout<<B.second<<endl;
^
0_0_31304007_28861.cpp:39:19: error: 'class std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, cmp>' has no member named 'second'
else cout<<C.second<<endl;
^
0_0_31304007_28861.cpp:43:11: error: 'class std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, cmp>' has no member named 'clear'
A.clear();B.clear();C.clear();
^
0_0_31304007_28861.cpp:43:21: error: 'class std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, cmp>' has no member named 'clear'
A.clear();B.clear();C.clear();
^
0_0_31304007_28861.cpp:43:31: error: 'class std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, cmp>' has no member named 'clear'
A.clear();B.clear();C.clear();
^
|