0_0_38949167_6451.cpp: In function 'int main()':
0_0_38949167_6451.cpp:17:17: error: reference to 'lcm' is ambiguous
17 | lcm=1;
| ^~~
In file included from .\stdc++.h:58:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/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
| ^~~
0_0_38949167_6451.cpp:3:29: note: 'long long int lcm'
3 | long long n,m,i,ans,sta,num,lcm,a[11000];
| ^~~
0_0_38949167_6451.cpp:22:25: error: reference to 'lcm' is ambiguous
22 | lcm=lcm/__gcd(lcm,a[i])*a[i];
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/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
| ^~~
0_0_38949167_6451.cpp:3:29: note: 'long long int lcm'
3 | long long n,m,i,ans,sta,num,lcm,a[11000];
| ^~~
0_0_38949167_6451.cpp:22:29: error: reference to 'lcm' is ambiguous
22 | lcm=lcm/__gcd(lcm,a[i])*a[i];
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/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
| ^~~
0_0_38949167_6451.cpp:3:29: note: 'long long int lcm'
3 | long long n,m,i,ans,sta,num,lcm,a[11000];
| ^~~
0_0_38949167_6451.cpp:22:39: error: reference to 'lcm' is ambiguous
22 | lcm=lcm/__gcd(lcm,a[i])*a[i];
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/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
| ^~~
0_0_38949167_6451.cpp:3:29: note: 'long long int lcm'
3 | long long n,m,i,ans,sta,num,lcm,a[11000];
| ^~~
0_0_38949167_6451.cpp:26:34: error: reference to 'lcm' is ambiguous
26 | if(num&1) ans+=n/lcm;
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/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
| ^~~
0_0_38949167_6451.cpp:3:29: note: 'long long int lcm'
3 | long long n,m,i,ans,sta,num,lcm,a[11000];
| ^~~
0_0_38949167_6451.cpp:27:29: error: reference to 'lcm' is ambiguous
27 | else ans-=n/lcm;
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/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
| ^~~
0_0_38949167_6451.cpp:3:29: note: 'long long int lcm'
3 | long long n,m,i,ans,sta,num,lcm,a[11000];
| ^~~
|