olympiads.cpp:63:70: error: no matching function for call to 'std::priority_queue<data, std::vector<data>, std::function<bool(data, data)> >::priority_queue(bool (&)(data&, data&))'
priority_queue<data,vector<data>, function<bool(data,data)> > pq(comp);
^
In file included from /usr/include/c++/7/queue:64:0,
from olympiads.cpp:9:
/usr/include/c++/7/bits/stl_queue.h:552:2: note: candidate: template<class _InputIterator> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(_InputIterator, _InputIterator, const _Compare&, _Sequence&&)
priority_queue(_InputIterator __first, _InputIterator __last,
^~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_queue.h:552:2: note: template argument deduction/substitution failed:
olympiads.cpp:63:70: note: candidate expects 4 arguments, 1 provided
priority_queue<data,vector<data>, function<bool(data,data)> > pq(comp);
^
In file included from /usr/include/c++/7/queue:64:0,
from olympiads.cpp:9:
/usr/include/c++/7/bits/stl_queue.h:541:2: note: candidate: template<class _InputIterator> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(_InputIterator, _InputIterator, const _Compare&, const _Sequence&)
priority_queue(_InputIterator __first, _InputIterator __last,
^~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_queue.h:541:2: note: template argument deduction/substitution failed:
olympiads.cpp:63:70: note: candidate expects 4 arguments, 1 provided
priority_queue<data,vector<data>, function<bool(data,data)> > pq(comp);
^
In file included from /usr/include/c++/7/queue:64:0,
from olympiads.cpp:9:
/usr/include/c++/7/bits/stl_queue.h:509:2: note: candidate: template<class _Alloc, class _Requires> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(std::priority_queue<_Tp, _Sequence, _Compare>&&, const _Alloc&)
priority_queue(priority_queue&& __q, const _Alloc& __a)
^~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_queue.h:509:2: note: template argument deduction/substitution failed:
olympiads.cpp:63:70: note: candidate expects 2 arguments, 1 provided
priority_queue<data,vector<data>, function<bool(data,data)> > pq(comp);
^
In file included from /usr/include/c++/7/queue:64:0,
from olympiads.cpp:9:
/usr/include/c++/7/bits/stl_queue.h:505:2: note: candidate: template<class _Alloc, class _Requires> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const std::priority_queue<_Tp, _Sequence, _Compare>&, const _Alloc&)
priority_queue(const priority_queue& __q, const _Alloc& __a)
^~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_queue.h:505:2: note: template argument deduction/substitution failed:
olympiads.cpp:63:70: note: candidate expects 2 arguments, 1 provided
priority_queue<data,vector<data>, function<bool(data,data)> > pq(comp);
^
In file included from /usr/include/c++/7/queue:64:0,
from olympiads.cpp:9:
/usr/include/c++/7/bits/stl_queue.h:501:2: note: candidate: template<class _Alloc, class _Requires> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const _Compare&, _Sequence&&, const _Alloc&)
priority_queue(const _Compare& __x, _Sequence&& __c, const _Alloc& __a)
^~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_queue.h:501:2: note: template argument deduction/substitution failed:
olympiads.cpp:63:70: note: candidate expects 3 arguments, 1 provided
priority_queue<data,vector<data>, function<bool(data,data)> > pq(comp);
^
In file included from /usr/include/c++/7/queue:64:0,
from olympiads.cpp:9:
/usr/include/c++/7/bits/stl_queue.h:496:2: note: candidate: template<class _Alloc, class _Requires> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const _Compare&, const _Sequence&, const _Alloc&)
priority_queue(const _Compare& __x, const _Sequence& __c,
^~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_queue.h:496:2: note: template argument deduction/substitution failed:
olympiads.cpp:63:70: note: candidate expects 3 arguments, 1 provided
priority_queue<data,vector<data>, function<bool(data,data)> > pq(comp);
^
In file included from /usr/include/c++/7/queue:64:0,
from olympiads.cpp:9:
/usr/include/c++/7/bits/stl_queue.h:492:2: note: candidate: template<class _Alloc, class _Requires> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const _Compare&, const _Alloc&)
priority_queue(const _Compare& __x, const _Alloc& __a)
^~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_queue.h:492:2: note: template argument deduction/substitution failed:
olympiads.cpp:63:70: note: candidate expects 2 arguments, 1 provided
priority_queue<data,vector<data>, function<bool(data,data)> > pq(comp);
^
In file included from /usr/include/c++/7/queue:64:0,
from olympiads.cpp:9:
/usr/include/c++/7/bits/stl_queue.h:488:2: note: candidate: template<class _Alloc, class _Requires> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const _Alloc&)
priority_queue(const _Alloc& __a)
^~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_queue.h:488:2: note: template argument deduction/substitution failed:
/usr/include/c++/7/bits/stl_queue.h:482:7: note: candidate: std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const _Compare&, _Sequence&&) [with _Tp = data; _Sequence = std::vector<data>; _Compare = std::function<bool(data, data)>]
priority_queue(const _Compare& __x, _Sequence&& __s = _Sequence())
^~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_queue.h:482:7: note: no known conversion for argument 1 from 'bool(data&, data&)' to 'const std::function<bool(data, data)>&'
/usr/include/c++/7/bits/stl_queue.h:477:7: note: candidate: std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const _Compare&, const _Sequence&) [with _Tp = data; _Sequence = std::vector<data>; _Compare = std::function<bool(data, data)>]
priority_queue(const _Compare& __x, const _Sequence& __s)
^~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_queue.h:477:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/7/bits/stl_queue.h:473:2: note: candidate: template<class _Seq, class _Requires> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue()
priority_queue()
^~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_queue.h:473:2: note: template argument deduction/substitution failed:
olympiads.cpp:63:70: note: candidate expects 0 arguments, 1 provided
priority_queue<data,vector<data>, function<bool(data,data)> > pq(comp);
^
In file included from /usr/include/c++/7/queue:64:0,
from olympiads.cpp:9:
/usr/include/c++/7/bits/stl_queue.h:423:11: note: candidate: std::priority_queue<data, std::vector<data>, std::function<bool(data, data)> >::priority_queue(const std::priority_queue<data, std::vector<data>, std::function<bool(data, data)> >&)
class priority_queue
^~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_queue.h:423:11: note: no known conversion for argument 1 from 'bool(data&, data&)' to 'const std::priority_queue<data, std::vector<data>, std::function<bool(data, data)> >&'
/usr/include/c++/7/bits/stl_queue.h:423:11: note: candidate: std::priority_queue<data, std::vector<data>, std::function<bool(data, data)> >::priority_queue(std::priority_queue<data, std::vector<data>, std::function<bool(data, data)> >&&)
/usr/include/c++/7/bits/stl_queue.h:423:11: note: no known conversion for argument 1 from 'bool(data&, data&)' to 'std::priority_queue<data, std::vector<data>, std::function<bool(data, data)> >&&'
olympiads.cpp: In function 'int evaluateSpace(int*, std::vector<int>&)':
olympiads.cpp:74:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(taken.size() == k){
~~~~~~~~~~~~~^~~~
olympiads.cpp:89:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(valid.size() < numT){
~~~~~~~~~~~~~^~~~~~
olympiads.cpp:112:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(numT > good.size())break;
~~~~~^~~~~~~~~~~~~
olympiads.cpp:19:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define FOR(i,n) for(int i=0;i<n;i++)
olympiads.cpp:114:13:
FOR(j,good.size()){
~~~~~~~~~~~~~
olympiads.cpp:114:9: note: in expansion of macro 'FOR'
FOR(j,good.size()){
^~~
olympiads.cpp:119:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(cc.size() == numT){
~~~~~~~~~~^~~~~~~
olympiads.cpp: In function 'void processSubspace(int*)':
olympiads.cpp:19:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define FOR(i,n) for(int i=0;i<n;i++)
olympiads.cpp:157:9:
FOR(i,ans.size()){
~~~~~~~~~~~~
olympiads.cpp:157:5: note: in expansion of macro 'FOR'
FOR(i,ans.size()){
^~~