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_14838437_18397.cpp: In function 'int main()':
0_0_14838437_18397.cpp:95:47: error: no matching function for call to 'ppi::ppi(pi&, int)'
         pi tem=pi(tem1,tem2); q.push(ppi(tem,0)); h[tem]=0;
                                               ^
0_0_14838437_18397.cpp:95:47: note: candidates are:
0_0_14838437_18397.cpp:34:2: note: ppi::ppi(pi&, int&)
  ppi(pi &_x,int &_y){
  ^
0_0_14838437_18397.cpp:34:2: note:   no known conversion for argument 2 from 'int' to 'int&'
0_0_14838437_18397.cpp:33:2: note: ppi::ppi()
  ppi(){};
  ^
0_0_14838437_18397.cpp:33:2: note:   candidate expects 0 arguments, 2 provided
0_0_14838437_18397.cpp:30:8: note: constexpr ppi::ppi(const ppi&)
 struct ppi{
        ^
0_0_14838437_18397.cpp:30:8: note:   candidate expects 1 argument, 2 provided
0_0_14838437_18397.cpp:30:8: note: constexpr ppi::ppi(ppi&&)
0_0_14838437_18397.cpp:30:8: note:   candidate expects 1 argument, 2 provided
0_0_14838437_18397.cpp:99:44: error: no matching function for call to 'ppi::ppi(pi&, int)'
         tem=pi(tem1,tem2); q.push(ppi(tem,9)); h[tem]=9;
                                            ^
0_0_14838437_18397.cpp:99:44: note: candidates are:
0_0_14838437_18397.cpp:34:2: note: ppi::ppi(pi&, int&)
  ppi(pi &_x,int &_y){
  ^
0_0_14838437_18397.cpp:34:2: note:   no known conversion for argument 2 from 'int' to 'int&'
0_0_14838437_18397.cpp:33:2: note: ppi::ppi()
  ppi(){};
  ^
0_0_14838437_18397.cpp:33:2: note:   candidate expects 0 arguments, 2 provided
0_0_14838437_18397.cpp:30:8: note: constexpr ppi::ppi(const ppi&)
 struct ppi{
        ^
0_0_14838437_18397.cpp:30:8: note:   candidate expects 1 argument, 2 provided
0_0_14838437_18397.cpp:30:8: note: constexpr ppi::ppi(ppi&&)
0_0_14838437_18397.cpp:30:8: note:   candidate expects 1 argument, 2 provided
0_0_14838437_18397.cpp:111:50: error: no matching function for call to 'dfs(int, int&, int&, int, int)'
                 if(dfs(0,l[i],x[i],tem.second+1,0)) break;
                                                  ^
0_0_14838437_18397.cpp:111:50: note: candidates are:
0_0_14838437_18397.cpp:13:6: note: bool dfs(int, int)
 bool dfs(int k,int g);
      ^
0_0_14838437_18397.cpp:13:6: note:   candidate expects 2 arguments, 5 provided
0_0_14838437_18397.cpp:42:6: note: bool dfs(int, int, int&, int&, int)
 bool dfs(int dis,int num0,int &x0,int &k0,int sum){
      ^
0_0_14838437_18397.cpp:42:6: note:   no known conversion for argument 4 from 'int' to 'int&'


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-30 00:09:29, Gzip enabled