Borderou de evaluare (job #2171421)

Utilizator osiaccrCristian Osiac osiaccr Data 15 martie 2018 12:18:54
Problema Derdelus Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:26:56: error: no matching function for call to ‘max(int)’ D[i][j] = (M[i][j].first - M[max (i - m - 1), 1][max (j - m - 1, 1)] + ^ In file included from /usr/include/c++/5/bits/char_traits.h:39:0, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from user.cpp:1: /usr/include/c++/5/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&) max(const _Tp& __a, const _Tp& __b) ^ /usr/include/c++/5/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed: user.cpp:26:56: note: candidate expects 2 arguments, 1 provided D[i][j] = (M[i][j].first - M[max (i - m - 1), 1][max (j - m - 1, 1)] + ^ In file included from /usr/include/c++/5/bits/char_traits.h:39:0, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from user.cpp:1: /usr/include/c++/5/bits/stl_algobase.h:265:5: note: candidate: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare) max(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ /usr/include/c++/5/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed: user.cpp:26:56: note: candidate expects 3 arguments, 1 provided D[i][j] = (M[i][j].first - M[max (i - m - 1), 1][max (j - m - 1, 1)] + ^ user.cpp:27:57: error: no matching function for call to ‘max(int)’ M[i][j].second - M[max (i - m - 1), 1][j]) % MODO; ^ In file included from /usr/include/c++/5/bits/char_traits.h:39:0, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from user.cpp:1: /usr/include/c++/5/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&) max(const _Tp& __a, const _Tp& __b) ^ /usr/include/c++/5/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed: user.cpp:27:57: note: candidate expects 2 arguments, 1 provided M[i][j].second - M[max (i - m - 1), 1][j]) % MODO; ^ In file included from /usr/include/c++/5/bits/char_traits.h:39:0, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from user.cpp:1: /usr/include/c++/5/bits/stl_algobase.h:265:5: note: candidate: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare) max(const _Tp& __a, const _Tp& __b, _Compare __comp)

Ceva nu functioneaza?