Problem | firefighting |
---|---|
User | cobnet |
Submission Time | 2023-01-28 22:52:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
firefighting.cpp:12:26: error: ‘citydist’ does not name a type
12 | bool compareByDist(const citydist &a, const citydist &b){
| ^~~~~~~~
firefighting.cpp:12:45: error: ‘citydist’ does not name a type
12 | bool compareByDist(const citydist &a, const citydist &b){
| ^~~~~~~~
firefighting.cpp: In function ‘bool compareByDist(const int&, const int&)’:
firefighting.cpp:13:14: error: request for member ‘dist’ in ‘a’, which is of non-class type ‘const int’
13 | return a.dist < b.dist;
| ^~~~
firefighting.cpp:13:23: error: request for member ‘dist’ in ‘b’, which is of non-class type ‘const int’
13 | return a.dist < b.dist;
| ^~~~