Problem graphcraft
User lijia1
Submission Time 2024-06-22 10:43:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

graphcraft.cpp: In function ‘int graphcraft(int, int, std::vector<std::pair<int, int> >*)’:
graphcraft.cpp:43:18: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘std::vector<long int>’
43 | return dp(V, cost, C);
| ^~~~
graphcraft.cpp:22:51: note: in passing argument 2 of ‘int dp(std::vector<std::pair<int, int> >*, std::vector<int>&, int)’
22 | int dp(vector< pair<int, int> > V[], vector<int>& cost, int index){
| ~~~~~~~~~~~~~^~~~