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_21126039_1404.cpp: In function 'int main()':
0_0_21126039_1404.cpp:28:11: error: no matching function for call to 'qnode::qnode()'
     qnode q1;
           ^
0_0_21126039_1404.cpp:28:11: note: candidates are:
0_0_21126039_1404.cpp:14:5: note: qnode::qnode(int, int, int)
     qnode(int a,int b,int c){
     ^
0_0_21126039_1404.cpp:14:5: note:   candidate expects 3 arguments, 0 provided
0_0_21126039_1404.cpp:10:8: note: constexpr qnode::qnode(const qnode&)
 struct qnode{
        ^
0_0_21126039_1404.cpp:10:8: note:   candidate expects 1 argument, 0 provided
0_0_21126039_1404.cpp:10:8: note: constexpr qnode::qnode(qnode&&)
0_0_21126039_1404.cpp:10:8: note:   candidate expects 1 argument, 0 provided
0_0_21126039_1404.cpp:40:39: error: no match for call to '(qnode) (int&, int&, int&)'
             E[a].push_back(q1(b,d,cost));
                                       ^
0_0_21126039_1404.cpp:42:39: error: no match for call to '(qnode) (int&, int&, int&)'
             E[b].push_back(q1(a,d,cost);
                                       ^


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 11:39:44, Gzip enabled