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_36281118_9934.cpp: In function 'int main()':
0_0_36281118_9934.cpp:23:20: error: 'cmp' was not declared in this scope
   sort(xx+1,xx+n+1,cmp);
                    ^
0_0_36281118_9934.cpp:28:35: error: no matching function for call to 'lower_bound(int*, int*)'
    x[i]=lower_bound(xx+1,xx+lenx+1);
                                   ^
0_0_36281118_9934.cpp:28:35: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61:0,
                 from 0_0_36281118_9934.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:990:5: note: template<class _ForwardIterator, class _Tp> _ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&)
     lower_bound(_ForwardIterator __first, _ForwardIterator __last,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:990:5: note:   template argument deduction/substitution failed:
0_0_36281118_9934.cpp:28:35: note:   candidate expects 3 arguments, 2 provided
    x[i]=lower_bound(xx+1,xx+lenx+1);
                                   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_36281118_9934.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2022:5: note: template<class _FIter, class _Tp, class _Compare> _FIter std::lower_bound(_FIter, _FIter, const _Tp&, _Compare)
     lower_bound(_ForwardIterator __first, _ForwardIterator __last,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2022:5: note:   template argument deduction/substitution failed:
0_0_36281118_9934.cpp:28:35: note:   candidate expects 4 arguments, 2 provided
    x[i]=lower_bound(xx+1,xx+lenx+1);
                                   ^
0_0_36281118_9934.cpp:29:35: error: no matching function for call to 'lower_bound(int*, int*)'
    y[i]=lower_bound(yy+1,yy+leny+1);
                                   ^
0_0_36281118_9934.cpp:29:35: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61:0,
                 from 0_0_36281118_9934.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:990:5: note: template<class _ForwardIterator, class _Tp> _ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&)
     lower_bound(_ForwardIterator __first, _ForwardIterator __last,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:990:5: note:   template argument deduction/substitution failed:
0_0_36281118_9934.cpp:29:35: note:   candidate expects 3 arguments, 2 provided
    y[i]=lower_bound(yy+1,yy+leny+1);
                                   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_36281118_9934.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2022:5: note: template<class _FIter, class _Tp, class _Compare> _FIter std::lower_bound(_FIter, _FIter, const _Tp&, _Compare)
     lower_bound(_ForwardIterator __first, _ForwardIterator __last,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2022:5: note:   template argument deduction/substitution failed:
0_0_36281118_9934.cpp:29:35: note:   candidate expects 4 arguments, 2 provided
    y[i]=lower_bound(yy+1,yy+leny+1);
                                   ^
0_0_36281118_9934.cpp:30:36: error: 'c' was not declared in this scope
    val[x[i]][y[i]]=val[x[i]][y[i]]+c[i];
                                    ^


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-22 19:29:11, Gzip enabled