Problem firefighting
User cobnet
Submission Time 2023-01-29 02:29:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

firefighting.cpp: In function ‘long long int shortestPath(int, int, std::vector<std::pair<int, int> >*, int)’:
firefighting.cpp:56:28: error: no match for ‘operator[]’ (operand types are ‘<unresolved overloaded function type>’ and ‘city_dist’)
56 | city_dist_table.push_back[cd1];
| ^
firefighting.cpp:61:28: error: no match for ‘operator[]’ (operand types are ‘<unresolved overloaded function type>’ and ‘city_dist’)
61 | city_dist_table.push_back[cd2];
| ^