Problem sightseeing
User PanGD
Submission Time 2022-12-24 19:27:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sightseeing.cpp: In function ‘void dfs(int, int)’:
sightseeing.cpp:41:38: error: ‘struct std::pair<int, int>’ has no member named ‘weight’
41 | maximum_one[e.first] = e.weight;
| ^~~~~~
sightseeing.cpp:42:24: error: too few arguments to function ‘void dfs(int, int)’
42 | dfs(e.first);
| ^
sightseeing.cpp:36:6: note: declared here
36 | void dfs(int node, int current_minimum_weight){
| ^~~