F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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))
                             ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-18 01:26:34, Gzip enabled