0_0_33403876_17822.cpp: In function 'long long int search(long long int, long long int, long long int, long long int, long long int, int)':
0_0_33403876_17822.cpp:9:59: error: expected ')' before numeric constant
for(LL i=0;i<=B;i++)ans+=search(x-1,i,i>pre?y+1:((!i&&!u)0:1),z&(i==B),max(w,i>pre?y+1:((!i&&!u)0:1)),u|(i>0));
^
0_0_33403876_17822.cpp:9:112: error: expected ')' before ';' token
for(LL i=0;i<=B;i++)ans+=search(x-1,i,i>pre?y+1:((!i&&!u)0:1),z&(i==B),max(w,i>pre?y+1:((!i&&!u)0:1)),u|(i>0));
^
0_0_33403876_17822.cpp: In function 'long long int ask(long long int, long long int)':
0_0_33403876_17822.cpp:16:27: error: no matching function for call to 'search(long long int&, int, int, int, int)'
return search(len,0,0,1,1);
^
0_0_33403876_17822.cpp:16:27: note: candidates are:
0_0_33403876_17822.cpp:5:4: note: long long int search(long long int, long long int, long long int, long long int, long long int, int)
LL search(LL x,LL pre,LL y,LL z,LL w,int u){
^
0_0_33403876_17822.cpp:5:4: note: candidate expects 6 arguments, 5 provided
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_33403876_17822.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4050:5: note: template<class _FIter1, class _FIter2, class _BinaryPredicate> _FIter1 std::search(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate)
search(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4050:5: note: template argument deduction/substitution failed:
0_0_33403876_17822.cpp:16:27: note: deduced conflicting types for parameter '_FIter1' ('long long int' and 'int')
return search(len,0,0,1,1);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_33403876_17822.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4010:5: note: template<class _FIter1, class _FIter2> _FIter1 std::search(_FIter1, _FIter1, _FIter2, _FIter2)
search(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4010:5: note: template argument deduction/substitution failed:
0_0_33403876_17822.cpp:16:27: note: deduced conflicting types for parameter '_FIter1' ('long long int' and 'int')
return search(len,0,0,1,1);
^
|