0_0_26098271_22810.cpp: In function 'int main()':
0_0_26098271_22810.cpp:67:29: error: no matching function for call to 'search(int [255025], int, int, ll&)'
if(search(sum,0,t-1,temp))
^
0_0_26098271_22810.cpp:67:29: note: candidates are:
0_0_26098271_22810.cpp:15:6: note: bool search(ll*, int, int, ll)
bool search(ll t[],int l,int r,ll k)
^
0_0_26098271_22810.cpp:15:6: note: no known conversion for argument 1 from 'int [255025]' to 'll* {aka long long int*}'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_26098271_22810.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_26098271_22810.cpp:67:29: note: deduced conflicting types for parameter '_FIter1' ('int*' and 'int')
if(search(sum,0,t-1,temp))
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_26098271_22810.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_26098271_22810.cpp:67:29: note: deduced conflicting types for parameter '_FIter1' ('int*' and 'int')
if(search(sum,0,t-1,temp))
^
|