Borderou de evaluare (job #2547302)

Utilizator gasparrobert95Gaspar Robert Andrei gasparrobert95 Data 15 februarie 2020 11:03:42
Problema Maxd Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:24:13: error: reference to 'min' is ambiguous min = a; ^~~ main.cpp:6:5: note: candidates are: int min int min, nrdiv, contor, a, b; ^~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from main.cpp:1: /usr/include/c++/6/bits/stl_algobase.h:243:5: note: template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^~~ /usr/include/c++/6/bits/stl_algobase.h:195:5: note: template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&) min(const _Tp& __a, const _Tp& __b) ^~~ main.cpp:32:13: error: reference to 'min' is ambiguous fout << min << " " << nrdiv << " " << contor; ^~~ main.cpp:6:5: note: candidates are: int min int min, nrdiv, contor, a, b; ^~~ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from main.cpp:1: /usr/include/c++/6/bits/stl_algobase.h:243:5: note: template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^~~ /usr/include/c++/6/bits/stl_algobase.h:195:5: note: template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&) min(const _Tp& __a, const _Tp& __b) ^~~ Non zero exit status: 1

Ceva nu functioneaza?