Problem roadsideadverts
User Rolo
Submission Time 2024-08-12 21:53:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

roadsideadverts.cpp: In function ‘void dfs(int, int, int, bool)’:
roadsideadverts.cpp:15:8: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘first’
15 | if(u.first != p)
| ^~~~~
roadsideadverts.cpp:18:10: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘first’
18 | dfs(u.first,v,u.second,1);
| ^~~~~
roadsideadverts.cpp:18:20: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘second’
18 | dfs(u.first,v,u.second,1);
| ^~~~~~