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_39333008_2625.cpp: In function 'void exa(long long int, long long int, long long int&, long long int&)':
0_0_39333008_2625.cpp:16:9: error: reference to 'exa' is ambiguous
   16 |         exa(b, a % b, x, y);
      |         ^~~
In file included from .\stdc++.h:66:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ratio:578:47: note: candidates are: 'typedef struct std::ratio<1000000000000000000, 1> std::exa'
  578 |   typedef ratio<      1000000000000000000, 1> exa;
      |                                               ^~~
0_0_39333008_2625.cpp:5:6: note:                 'void exa(long long int, long long int, long long int&, long long int&)'
    5 | void exa(long long a, long long b, long long &x, long long &y){
      |      ^~~
0_0_39333008_2625.cpp: In function 'int main()':
0_0_39333008_2625.cpp:26:17: error: reference to 'exa' is ambiguous
   26 |                 exa(max(a, b), min(a, b), x, y);
      |                 ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ratio:578:47: note: candidates are: 'typedef struct std::ratio<1000000000000000000, 1> std::exa'
  578 |   typedef ratio<      1000000000000000000, 1> exa;
      |                                               ^~~
0_0_39333008_2625.cpp:5:6: note:                 'void exa(long long int, long long int, long long int&, long long int&)'
    5 | void exa(long long a, long long b, long long &x, long long &y){
      |      ^~~


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-24 08:28:48, Gzip enabled