Problem car
User 56cy
Submission Time 2023-02-12 20:35:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

car.cpp: In function ‘int main()’:
car.cpp:41:44: error: cannot bind non-const lvalue reference of type ‘std::set<int>&’ to an rvalue of type ‘std::set<int>’
41 | traverse(0, n - 1, ans, 0, roads, std::set<int>());
| ^~~~~~~~~~
car.cpp:13:20: note: initializing argument 6 of ‘void traverse(int, int, int&, int, std::vector<std::vector<std::pair<int, int> > >&, std::set<int>&)’
13 | std::set<int>& seen
| ~~~~~~~~~~~~~~~^~~~