Problem | inheritance |
---|---|
User | Pan |
Submission Time | 2023-12-01 11:35:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
inheritance.cpp: In function ‘int main()’:
inheritance.cpp:72:15: error: cannot convert ‘road’ to ‘__gnu_pbds::detail::rb_tree_map<road, std::vector<road>, compare, __gnu_pbds::detail::tree_traits<road, std::vector<road>, compare, __gnu_pbds::tree_order_statistics_node_update, __gnu_pbds::rb_tree_tag, std::allocator<char> >, std::allocator<char> >::const_reference’ {aka ‘const std::pair<const road, std::vector<road> >&’}
72 | path.insert(a);
| ^
| |
| road
In file included from /usr/include/c++/9/ext/pb_ds/detail/rb_tree_map_/rb_tree_.hpp:235,
from /usr/include/c++/9/ext/pb_ds/detail/container_base_dispatch.hpp:68,
from /usr/include/c++/9/ext/pb_ds/assoc_container.hpp:48,
from inheritance.cpp:5:
/usr/include/c++/9/ext/pb_ds/detail/rb_tree_map_/insert_fn_imps.hpp:44:24: note: initializing argum