0_0_39372904_28208.cpp: In function 'int main()':
0_0_39372904_28208.cpp:22:48: error: reference to 'lcm' is ambiguous
22 | t = i, k = 0, pos = 1; 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_39372904_28208.cpp:3:34: note: 'int lcm'
3 | int n, m, x, k, tot, up, t, pos, lcm, ans, num[15];
| ^~~
0_0_39372904_28208.cpp:27:41: error: reference to 'lcm' is ambiguous
27 | lcm = num[pos]/gcd(lcm, num[pos])*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_39372904_28208.cpp:3:34: note: 'int lcm'
3 | int n, m, x, k, tot, up, t, pos, lcm, ans, num[15];
| ^~~
0_0_39372904_28208.cpp:27:60: error: reference to 'lcm' is ambiguous
27 | lcm = num[pos]/gcd(lcm, num[pos])*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_39372904_28208.cpp:3:34: note: 'int lcm'
3 | int n, m, x, k, tot, up, t, pos, lcm, ans, num[15];
| ^~~
0_0_39372904_28208.cpp:27:75: error: reference to 'lcm' is ambiguous
27 | lcm = num[pos]/gcd(lcm, num[pos])*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_39372904_28208.cpp:3:34: note: 'int lcm'
3 | int n, m, x, k, tot, up, t, pos, lcm, ans, num[15];
| ^~~
0_0_39372904_28208.cpp:32:46: error: reference to 'lcm' is ambiguous
32 | if(k&1) ans += (n-1)/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_39372904_28208.cpp:3:34: note: 'int lcm'
3 | int n, m, x, k, tot, up, t, pos, lcm, ans, num[15];
| ^~~
0_0_39372904_28208.cpp:33:43: error: reference to 'lcm' is ambiguous
33 | else ans -= (n-1)/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_39372904_28208.cpp:3:34: note: 'int lcm'
3 | int n, m, x, k, tot, up, t, pos, lcm, ans, num[15];
| ^~~
|