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_38910102_3651.cpp: In function 'void solve()':
0_0_38910102_3651.cpp:47:107: error: no matching function for call to 'make_pair(std::pair<double, double>&, double, double)'
   47 |                 else printf("%lf %lf %lf\n", (a[1].fi + a[2].fi) / 2.0, (a[1].se + a[2].se) / 2.0, dist(mp(a[1], (a[1].fi + a[2].fi) / 2.0, (a[1].se + a[2].se) / 2.0)));
      |                                                                                                           ^
In file included 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++/bits/stl_pair.h:922:5: note: candidate: 'template<class _T1, class _T2> constexpr std::pair<typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type, typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type> std::make_pair(_T1&&, _T2&&)'
  922 |     make_pair(_T1&& __x, _T2&& __y)
      |     ^~~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:922:5: note:   template argument deduction/substitution failed:
0_0_38910102_3651.cpp:47:107: note:   candidate expects 2 arguments, 3 provided
   47 |                 else printf("%lf %lf %lf\n", (a[1].fi + a[2].fi) / 2.0, (a[1].se + a[2].se) / 2.0, dist(mp(a[1], (a[1].fi + a[2].fi) / 2.0, (a[1].se + a[2].se) / 2.0)));
      |                                                                                                           ^


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-29 02:55:34, Gzip enabled