squad.cpp: In member function 'int aint::cb(ldouble)':
squad.cpp:62:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(ret+(1<<p)<all[1].size()&&all[1][ret+(1<<p)]<x)
~~~~~~~~~~^~~~~~~~~~~~~~
squad.cpp: In member function 'void aint::build(int, int, int)':
squad.cpp:81:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<drepte[nod].size(); i++)
~^~~~~~~~~~~~~~~~~~~
squad.cpp:83:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<all[2*nod].size();i+=2)
~^~~~~~~~~~~~~~~~~~
squad.cpp:85:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<all[2*nod+1].size();i+=2)
~^~~~~~~~~~~~~~~~~~~~
squad.cpp:97:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<all[nod].size();i++)
~^~~~~~~~~~~~~~~~
squad.cpp:108:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(p<all[2*nod].size()&&all[2*nod][p]<=act)
~^~~~~~~~~~~~~~~~~~
squad.cpp:114:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(p<all[2*nod].size()&&all[2*nod+1][p]<=act)
~^~~~~~~~~~~~~~~~~~
squad.cpp: In member function 'void aint::query(int, int, int, int, int, int, long long int, long long int)':
squad.cpp:127:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(unde+1<all[nod].size()&&all[nod][unde+1]<val)
~~~~~~^~~~~~~~~~~~~~~~
squad.cpp: In function 'void Init(std::vector<int>, std::vector<int>, std::vector<int>)':
squad.cpp:157:14: error: request for member 'want' in 'A.std::vector<int>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
A[0].want[i]=atac[i];
^~~~
squad.cpp:158:14: error: request for member 'want' in 'A.std::vector<int>::operator[](1)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
A[1].want[i]=apar[i];
^~~~
squad.cpp:160:10: error: request for member 'build' in 'A.std::vector<int>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
A[0].build(1,1,n);
^~~~~
squad.cpp:161:10: error: request for member 'build' in 'A.std::vector<int>::operator[](1)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
A[1].build(1,1,n);
^~~~~
squad.cpp: In function 'long long int BestSquad(int, int)':
squad.cpp:167:14: error: 'act' was not declared in this scope
mx=0;act=0;
^~~
squad.cpp:168:34: error: no matching function for call to 'aint::query(int, int, int&, int, int&, int&, int&)'
A[it].query(1,1,n,1,n,X,Y);
^
squad.cpp:120:10: note: candidate: void aint::query(int, int, int, int, int, int, long long int, long long int)
void query(int nod,int l,int r,int st,int dr,int unde,long long X,long long Y)
^~~~~
squad.cpp:120:10: note: candidate expects 8 arguments, 7 provided
squad.cpp:172:50: error: no matching function for call to 'aint::query(int, int, int&, int, int, int&, int&)'
if(spl>1) A[1-it].query(1,1,n,1,spl-1,X,Y);
^
squad.cpp:120:10: note: candidate: void aint::query(int, int, int, int, int, int, long long int, long long int)
void query(int nod,int l,int r,int st,int dr,int unde,long long X,long long Y)
^~~~~
squad.cpp:120:10: note: candidate expects 8 arguments, 7 provided
squad.cpp:173:50: error: no matching function for call to 'aint::query(int, int, int&, int, int&, int&, int&)'
if(spl<n) A[1-it].query(1,1,n,spl+1,n,X,Y);
^
squad.cpp:120:10: note: candidate: void aint::query(int, int, int, int, int, int, long long int, long long int)
void query(int nod,int l,int r,int st,int dr,int unde,long long X,long long Y)
^~~~~
squad.cpp:120:10: note: candidate expects 8 arguments, 7 provided