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_26446513_22900.cpp: In function 'int main()':
0_0_26446513_22900.cpp:42:16: error: reference to 'function' is ambiguous
         int a1=function(x,y);//cout<<a1<<endl;
                ^
0_0_26446513_22900.cpp:6:5: note: candidates are: int function(double, double)
 int function(double x,double y){
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70:0,
                 from 0_0_26446513_22900.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:1834:11: note:                 template<class _Signature> class std::function
     class function;
           ^
0_0_26446513_22900.cpp:43:16: error: reference to 'function' is ambiguous
         int a2=function(x,y+1-0.00000001);
                ^
0_0_26446513_22900.cpp:6:5: note: candidates are: int function(double, double)
 int function(double x,double y){
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70:0,
                 from 0_0_26446513_22900.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:1834:11: note:                 template<class _Signature> class std::function
     class function;
           ^


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-17 06:02:28, Gzip enabled