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_38845762_13898.cpp: In function 'double integral(double, double, const std::function<double(double)>&)':
0_0_38845762_13898.cpp:256:12: error: reference to 'integral' is ambiguous
  256 |     return integral(l,m,F) + integral(m,r,F);
      |            ^~~~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/compare:37,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:65,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:64,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:60,
                 from .\stdc++.h:51:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/concepts:100:13: note: candidates are: 'template<class _Tp> concept std::integral'
  100 |     concept integral = is_integral_v<_Tp>;
      |             ^~~~~~~~
0_0_38845762_13898.cpp:252:8: note:                 'double integral(double, double, const std::function<double(double)>&)'
  252 | double integral(double l,double r,const function<double(double )> &F){
      |        ^~~~~~~~
0_0_38845762_13898.cpp:256:30: error: reference to 'integral' is ambiguous
  256 |     return integral(l,m,F) + integral(m,r,F);
      |                              ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/concepts:100:13: note: candidates are: 'template<class _Tp> concept std::integral'
  100 |     concept integral = is_integral_v<_Tp>;
      |             ^~~~~~~~
0_0_38845762_13898.cpp:252:8: note:                 'double integral(double, double, const std::function<double(double)>&)'
  252 | double integral(double l,double r,const function<double(double )> &F){
      |        ^~~~~~~~
0_0_38845762_13898.cpp: In function 'void solve(int)':
0_0_38845762_13898.cpp:266:13: error: reference to 'integral' is ambiguous
  266 |     cout << integral(l,r,f) << "\n";
      |             ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/concepts:100:13: note: candidates are: 'template<class _Tp> concept std::integral'
  100 |     concept integral = is_integral_v<_Tp>;
      |             ^~~~~~~~
0_0_38845762_13898.cpp:252:8: note:                 'double integral(double, double, const std::function<double(double)>&)'
  252 | double integral(double l,double r,const function<double(double )> &F){
      |        ^~~~~~~~


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-06-17 00:11:42, Gzip enabled