| Problem | votingcities |
|---|---|
| User | rysneo |
| Submission Time | 2025-03-20 17:56:57 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
cc1plus: error: ‘::main’ must return ‘int’
votingcities.cpp: In function ‘int main()’:
votingcities.cpp:42:18: error: ‘a’ was not declared in this scope
42 | if (processed[a]) continue;
| ^
votingcities.cpp:43:14: error: ‘a’ was not declared in this scope
43 | processed[a] = true;
| ^
votingcities.cpp:50:16: error: invalid types ‘<unresolved overloaded function type>[long long int]’ for array subscript
50 | distance[b] = distance[a] + w;
| ^
votingcities.cpp:51:24: error: invalid types ‘<unresolved overloaded function type>[long long int]’ for array subscript
51 | q.push({distance[b], b});
| ^
votingcities.cpp:51:29: error: no matching function for call to ‘std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pa