Problem votingcities
User Ash
Submission Time 2024-04-15 18:45:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

votingcities.cpp:2:1: error: expected unqualified-id before numeric constant
2 | 1
| ^
votingcities.cpp: In function ‘void setIO()’:
votingcities.cpp:108:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
108 | cin.tie(0)->sync_with_stdio(0);
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from votingcities.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
votingcities.cpp: At global scope:
votingcities.cpp:111:1: error: ‘vector’ does not name a type
111 | vector<vector<pair<int, int>>> adj;
| ^~~~~~
votingcities.cpp:114:23: error: ‘vector’ has not been declared
114 | int dijkstra(int src, vector<int> &voting) {
| ^~~~~~
votingcities.c