In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from 0_0_38422576_3475.cpp:7:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h: In instantiation of 'class std::priority_queue<std::vector<int>, int, std::greater<int>()>':
0_0_38422576_3475.cpp:36:48: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:373:46: error: 'int' is not a class, struct, or union type
typedef typename _Sequence::value_type _Sequence_value_type;
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:382:61: error: 'int' is not a class, struct, or union type
typedef typename _Sequence::value_type value_type;
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:383:61: error: 'int' is not a class, struct, or union type
typedef typename _Sequence::reference reference;
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:384:61: error: 'int' is not a class, struct, or union type
typedef typename _Sequence::const_reference const_reference;
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:385:61: error: 'int' is not a class, struct, or union type
typedef typename _Sequence::size_type size_type;
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:391:18: error: field 'std::priority_queue<std::vector<int>, int, std::greater<int>()>::comp' invalidly declared function type
_Compare comp;
^
0_0_38422576_3475.cpp: In constructor 'std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const _Compare&, _Sequence&&) [with _Tp = std::vector<int>; _Sequence = int; _Compare = std::greater<int>()]':
0_0_38422576_3475.cpp:36:48: error: value-initialization of function type 'std::greater<int>()'
priority_queue<vector<int>,int,greater<int>()>q;
^
0_0_38422576_3475.cpp:36:48: note: when instantiating default argument for call to std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const _Compare&, _Sequence&&) [with _Tp = std::vector<int>; _Sequence = int; _Compare = std::greater<int>()]
0_0_38422576_3475.cpp: In function 'bool check(int)':
0_0_38422576_3475.cpp:38:5: error: 'class std::priority_queue<std::vector<int>, int, std::greater<int>()>' has no member named 'push'
q.push(a[i]);
^
0_0_38422576_3475.cpp:41:10: error: 'class std::priority_queue<std::vector<int>, int, std::greater<int>()>' has no member named 'size'
while(q.size()>2*x-1){
^
0_0_38422576_3475.cpp:46:11: error: 'class std::priority_queue<std::vector<int>, int, std::greater<int>()>' has no member named 'top'
res+=q.top();
^
0_0_38422576_3475.cpp:50:5: error: 'class std::priority_queue<std::vector<int>, int, std::greater<int>()>' has no member named 'push'
q.push(res);
^
0_0_38422576_3475.cpp:52:12: error: 'class std::priority_queue<std::vector<int>, int, std::greater<int>()>' has no member named 'size'
int cnt=q.size()-x+1;
^
0_0_38422576_3475.cpp:53:10: error: 'class std::priority_queue<std::vector<int>, int, std::greater<int>()>' has no member named 'size'
while(q.size()){
^
0_0_38422576_3475.cpp:54:10: error: 'class std::priority_queue<std::vector<int>, int, std::greater<int>()>' has no member named 'top'
ans+=q.top();
^
0_0_38422576_3475.cpp:55:23: error: 'class std::priority_queue<std::vector<int>, int, std::greater<int>()>' has no member named 'top'
if(cnt)cnt--,ans+=q.top();
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from 0_0_38422576_3475.cpp:7:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h: In instantiation of 'std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const _Compare&, _Sequence&&) [with _Tp = std::vector<int>; _Sequence = int; _Compare = std::greater<int>()]':
0_0_38422576_3475.cpp:36:48: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:414:48: error: request for member 'begin' in '((std::priority_queue<std::vector<int>, int, std::greater<int>()>*)this)->std::priority_queue<std::vector<int>, int, std::greater<int>()>::c', which is of non-class type 'int'
{ std::make_heap(c.begin(), c.end(), comp); }
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:414:48: error: request for member 'end' in '((std::priority_queue<std::vector<int>, int, std::greater<int>()>*)this)->std::priority_queue<std::vector<int>, int, std::greater<int>()>::c', which is of non-class type 'int'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h: In instantiation of 'bool std::priority_queue<_Tp, _Sequence, _Compare>::empty() const [with _Tp = std::vector<int>; _Sequence = int; _Compare = std::greater<int>()]':
0_0_38422576_3475.cpp:44:23: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:472:24: error: request for member 'empty' in '((const std::priority_queue<std::vector<int>, int, std::greater<int>()>*)this)->std::priority_queue<std::vector<int>, int, std::greater<int>()>::c', which is of non-class type 'const int'
{ return c.empty(); }
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h: In instantiation of 'void std::priority_queue<_Tp, _Sequence, _Compare>::pop() [with _Tp = std::vector<int>; _Sequence = int; _Compare = std::greater<int>()]':
0_0_38422576_3475.cpp:47:10: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:537:40: error: request for member 'begin' in '((std::priority_queue<std::vector<int>, int, std::greater<int>()>*)this)->std::priority_queue<std::vector<int>, int, std::greater<int>()>::c', which is of non-class type 'int'
std::pop_heap(c.begin(), c.end(), comp);
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:537:40: error: request for member 'end' in '((std::priority_queue<std::vector<int>, int, std::greater<int>()>*)this)->std::priority_queue<std::vector<int>, int, std::greater<int>()>::c', which is of non-class type 'int'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:538:2: error: request for member 'pop_back' in '((std::priority_queue<std::vector<int>, int, std::greater<int>()>*)this)->std::priority_queue<std::vector<int>, int, std::greater<int>()>::c', which is of non-class type 'int'
c.pop_back();
^
|