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_28968197_16061.cpp: In function 'int main()':
0_0_28968197_16061.cpp:110:77: error: no matching function for call to 'addEdge(Graph::shortestPath<long long int, 100001ull>&, int, long long int&, int)'
         for(int i=1;i<=s;i++){long long x;std::cin>>x;Graph::addEdge(G,0,x,0);}
                                                                             ^
0_0_28968197_16061.cpp:110:77: note: candidate is:
0_0_28968197_16061.cpp:89:10: note: template<class wT, long long unsigned int size> void Graph::addEdge(Graph::shortestPath<wT, size>&, Graph::T, Graph::T, wT)
     void addEdge(shortestPath<wT,size>& G,T from,T to,wT w){
          ^
0_0_28968197_16061.cpp:89:10: note:   template argument deduction/substitution failed:
0_0_28968197_16061.cpp:110:77: note:   deduced conflicting types for parameter 'wT' ('long long int' and 'int')
         for(int i=1;i<=s;i++){long long x;std::cin>>x;Graph::addEdge(G,0,x,0);}
                                                                             ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-11 01:44:37, Gzip enabled