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_37746745_8306.cpp: In function 'long long int dijkstra(const std::vector<std::vector<std::pair<int, long long int> > >&, std::vector<int>&, std::vector<int>&)':
0_0_37746745_8306.cpp:40:17: error: no match for call to '(std::vector<bool>) (int&)'
     if (vis(node)) continue;
                 ^
0_0_37746745_8306.cpp: In function 'long long int findResult(const std::vector<std::vector<std::pair<int, long long int> > >&, const std::vector<int>&, int)':
0_0_37746745_8306.cpp:64:40: error: invalid initialization of reference of type 'std::vector<int>&' from expression of type 'std::vector<long long int>'
     split(specialNodes, i, source, sink);
                                        ^
0_0_37746745_8306.cpp:16:6: note: in passing argument 3 of 'void split(const std::vector<int>&, int, std::vector<int>&, std::vector<int>&)'
 void split(const vector<int> &specialNodes, int bit, vector<int> &source, vector<int> &sink)\
      ^
0_0_37746745_8306.cpp:66:56: error: invalid initialization of reference of type 'std::vector<int>&' from expression of type 'std::vector<long long int>'
       result = min(result, dijkstra(edges, source, sink));
                                                        ^
0_0_37746745_8306.cpp:27:11: note: in passing argument 2 of 'long long int dijkstra(const std::vector<std::vector<std::pair<int, long long int> > >&, std::vector<int>&, std::vector<int>&)'
 long long dijkstra(const vector<vector<pair<int, long long> > > &edges, vector<int> &source,\
           ^
0_0_37746745_8306.cpp:67:56: error: invalid initialization of reference of type 'std::vector<int>&' from expression of type 'std::vector<long long int>'
       result = min(result, dijkstra(edges, sink, source));
                                                        ^
0_0_37746745_8306.cpp:27:11: note: in passing argument 2 of 'long long int dijkstra(const std::vector<std::vector<std::pair<int, long long int> > >&, std::vector<int>&, std::vector<int>&)'
 long long dijkstra(const vector<vector<pair<int, long long> > > &edges, vector<int> &source,\
           ^


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-22 10:27:36, Gzip enabled