0_0_17895406_15208.cpp: In function 'int main()':
0_0_17895406_15208.cpp:69:38: error: no matching function for call to 'max_element(int&, int*)'
cout<<*max_element(s[n][1],s[n]+m+1)<<endl;
^
0_0_17895406_15208.cpp:69:38: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_17895406_15208.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:5487:5: note: template<class _FIter> _FIter std::max_element(_FIter, _FIter)
max_element(_ForwardIterator __first, _ForwardIterator __last)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:5487:5: note: template argument deduction/substitution failed:
0_0_17895406_15208.cpp:69:38: note: deduced conflicting types for parameter '_FIter' ('int' and 'int*')
cout<<*max_element(s[n][1],s[n]+m+1)<<endl;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_17895406_15208.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:5510:5: note: template<class _FIter, class _Compare> _FIter std::max_element(_FIter, _FIter, _Compare)
max_element(_ForwardIterator __first, _ForwardIterator __last,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:5510:5: note: template argument deduction/substitution failed:
0_0_17895406_15208.cpp:69:38: note: deduced conflicting types for parameter '_FIter' ('int' and 'int*')
cout<<*max_element(s[n][1],s[n]+m+1)<<endl;
^
|