Borderou de evaluare (job #1988255)

Utilizator retrogradLucian Bicsi retrograd Data 2 iunie 2017 15:54:28
Problema Euro Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In member function ‘T LinearFunSet<T>::EvaluateMax(T)’: user.cpp:125:18: error: ‘numeric_limits’ was not declared in this scope T best = numeric_limits<T>::min(); ^ user.cpp:125:34: error: expected primary-expression before ‘>’ token T best = numeric_limits<T>::min(); ^ user.cpp:125:41: error: no matching function for call to ‘min()’ T best = numeric_limits<T>::min(); ^ user.cpp:125:41: note: candidates are: In file included from /usr/include/c++/4.8/vector:60:0, from user.cpp:1: /usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&) min(const _Tp& __a, const _Tp& __b) ^ /usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template argument deduction/substitution failed: user.cpp:125:41: note: candidate expects 2 arguments, 0 provided T best = numeric_limits<T>::min(); ^ In file included from /usr/include/c++/4.8/vector:60:0, from user.cpp:1: /usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare) min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ /usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template argument deduction/substitution failed: user.cpp:125:41: note: candidate expects 3 arguments, 0 provided T best = numeric_limits<T>::min(); ^ user.cpp: In instantiation of ‘LinearFunSet<T>::LinearFunSet(std::vector<_Tp>) [with T = long long int]’: user.cpp:172:44: required from here user.cpp:68:42: error: ‘sort’ was not declared in this scope sort(slopes.begin(), slopes.end()); ^ user.cpp:69:58: error: ‘unique’ was not declared in this scope slopes.resize(unique(slopes.begin(), slopes.end()) - slopes.begin()); ^ user.cpp: In function ‘int main()’: user.cpp:153:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("euro.in", "r", stdin); ^ user.cpp:154:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("euro.out", "w", stdout); ^

Ceva nu functioneaza?