Problem dreaming
User Pan
Submission Time 2024-02-23 17:54:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dreaming.cpp: In function ‘void dfs(ll, std::vector<int>&, std::vector<int>&)’:
dreaming.cpp:47:10: error: too few arguments to function ‘void dfs(ll, std::vector<int>&, std::vector<int>&)’
47 | dfs(u.f);
| ^
dreaming.cpp:37:6: note: declared here
37 | void dfs(ll from, vector<ll>& dist, vector<ll>& visited)
| ^~~
dreaming.cpp: In function ‘int travelTime(int, int, int, int*, int*, int*)’:
dreaming.cpp:70:17: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘std::vector<bool>’
70 | dfs(i, dist1, visited);
| ^~~~~~~
dreaming.cpp:37:50: note: in passing argument 3 of ‘void dfs(ll, std::vector<int>&, std::vector<int>&)’
37 | void dfs(ll from, vector<ll>& dist, vector<ll>& visited)
| ~~~~~~~~~~~~^~~~~~~
dreaming.cpp:73:27: er