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_39574437_53.cpp: In function 'int main()':
0_0_39574437_53.cpp:20:25: error: reference to 'gcd' is ambiguous
   20 |                         gcd=__gcd(b,d);
      |                         ^~~
In file included from .\stdc++.h:58:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numeric:164:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::gcd(_Mn, _Nn)'
  164 |     gcd(_Mn __m, _Nn __n) noexcept
      |     ^~~
0_0_39574437_53.cpp:4:27: note:                 'int gcd'
    4 | int n,a,b,c,d,e=0,f=0,g,h,gcd;
      |                           ^~~
0_0_39574437_53.cpp:21:27: error: reference to 'gcd' is ambiguous
   21 |                         g=gcd/b;
      |                           ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numeric:164:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::gcd(_Mn, _Nn)'
  164 |     gcd(_Mn __m, _Nn __n) noexcept
      |     ^~~
0_0_39574437_53.cpp:4:27: note:                 'int gcd'
    4 | int n,a,b,c,d,e=0,f=0,g,h,gcd;
      |                           ^~~
0_0_39574437_53.cpp:22:27: error: reference to 'gcd' is ambiguous
   22 |                         h=gcd/d;
      |                           ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numeric:164:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::gcd(_Mn, _Nn)'
  164 |     gcd(_Mn __m, _Nn __n) noexcept
      |     ^~~
0_0_39574437_53.cpp:4:27: note:                 'int gcd'
    4 | int n,a,b,c,d,e=0,f=0,g,h,gcd;
      |                           ^~~
0_0_39574437_53.cpp:23:27: error: reference to 'gcd' is ambiguous
   23 |                         f=gcd;
      |                           ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numeric:164:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::gcd(_Mn, _Nn)'
  164 |     gcd(_Mn __m, _Nn __n) noexcept
      |     ^~~
0_0_39574437_53.cpp:4:27: note:                 'int gcd'
    4 | int n,a,b,c,d,e=0,f=0,g,h,gcd;
      |                           ^~~


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-26 07:50:46, Gzip enabled