Borderou de evaluare (job #3150248)

Utilizator hhhhhhhAndrei Boaca hhhhhhh Data 15 septembrie 2023 18:26:03
Problema Bolt 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:19:5: error: reference to 'lcm' is ambiguous 19 | lcm=1; | ^~~ In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:84, from main.cpp:1: /usr/include/c++/12.2.1/numeric:179:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::lcm(_Mn, _Nn)' 179 | lcm(_Mn __m, _Nn __n) noexcept | ^~~ main.cpp:9:5: note: 'int lcm' 9 | int lcm; | ^~~ main.cpp:24:9: error: reference to 'lcm' is ambiguous 24 | lcm=(lcm*cif)/__gcd(lcm,cif); | ^~~ /usr/include/c++/12.2.1/numeric:179:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::lcm(_Mn, _Nn)' 179 | lcm(_Mn __m, _Nn __n) noexcept | ^~~ main.cpp:9:5: note: 'int lcm' 9 | int lcm; | ^~~ main.cpp:24:14: error: reference to 'lcm' is ambiguous 24 | lcm=(lcm*cif)/__gcd(lcm,cif); | ^~~ /usr/include/c++/12.2.1/numeric:179:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::lcm(_Mn, _Nn)' 179 | lcm(_Mn __m, _Nn __n) noexcept | ^~~ main.cpp:9:5: note: 'int lcm' 9 | int lcm; | ^~~ main.cpp:24:29: error: reference to 'lcm' is ambiguous 24 | lcm=(lcm*cif)/__gcd(lcm,cif); | ^~~ /usr/include/c++/12.2.1/numeric:179:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::lcm(_Mn, _Nn)' 179 | lcm(_Mn __m, _Nn __n) noexcept | ^~~ main.cpp:9:5: note: 'int lcm' 9 | int lcm; | ^~~ main.cpp:27:12: error: reference to 'lcm' is ambiguous 27 | pw[0]%=lcm; | ^~~ /usr/include/c++/12.2.1/numeric:179:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::lcm(_Mn, _Nn)' 179 | lcm(_Mn __m, _Nn __n) noexcept | ^~~ main.cpp:9:5: note: 'int lcm' 9 | int lcm; | ^~~ main.cpp:29:28: error: reference to 'lcm' is ambiguous 29 | pw[i]=(pw[i-1]*10)%lcm; Non zero exit status: 1

Ceva nu functioneaza?