F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39485023_3297.cpp: In function 'void work()':
0_0_39485023_3297.cpp:26:25: error: reference to 'lcm' is ambiguous
   26 |                 p[i]=15*lcm/p[i];
      |                         ^~~
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_39485023_3297.cpp:7:9: note:                 'long long int lcm'
    7 | ll d[N],lcm;
      |         ^~~
0_0_39485023_3297.cpp:35:26: error: reference to 'lcm' is ambiguous
   35 |         int gd=gcd(d[mx],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_39485023_3297.cpp:7:9: note:                 'long long int lcm'
    7 | ll d[N],lcm;
      |         ^~~
0_0_39485023_3297.cpp:37:27: error: reference to 'lcm' is ambiguous
   37 |         cout<<d[mx]<<'/'<<lcm/gd<<endl;
      |                           ^~~
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_39485023_3297.cpp:7:9: note:                 'long long int lcm'
    7 | ll d[N],lcm;
      |         ^~~
0_0_39485023_3297.cpp: In function 'int main()':
0_0_39485023_3297.cpp:40:9: error: reference to 'lcm' is ambiguous
   40 |         lcm=2;
      |         ^~~
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_39485023_3297.cpp:7:9: note:                 'long long int lcm'
    7 | ll d[N],lcm;
      |         ^~~
0_0_39485023_3297.cpp:42:17: error: reference to 'lcm' is ambiguous
   42 |                 lcm=lcm*i/gcd(lcm,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_39485023_3297.cpp:7:9: note:                 'long long int lcm'
    7 | ll d[N],lcm;
      |         ^~~
0_0_39485023_3297.cpp:42:21: error: reference to 'lcm' is ambiguous
   42 |                 lcm=lcm*i/gcd(lcm,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_39485023_3297.cpp:7:9: note:                 'long long int lcm'
    7 | ll d[N],lcm;
      |         ^~~
0_0_39485023_3297.cpp:42:31: error: reference to 'lcm' is ambiguous
   42 |                 lcm=lcm*i/gcd(lcm,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_39485023_3297.cpp:7:9: note:                 'long long int lcm'
    7 | ll d[N],lcm;
      |         ^~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-14 12:49:36, Gzip enabled