cities.cpp:15:9: error: 'MAX' was not declared in this scope
bitset <MAX> visited;
^
cities.cpp:15:12: error: template argument 1 is invalid
bitset <MAX> visited;
^
cities.cpp: In function 'void dijkstra(long long int*)':
cities.cpp:24:18: error: invalid types 'int[int]' for array subscript
visited[i] = false;
^
cities.cpp:32:34: error: invalid types 'int[int]' for array subscript
i = cur.second, visited[i] = true;
^
cities.cpp:33:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j = 0; j < graph[i].size(); j++){
^
cities.cpp:35:27: error: invalid types 'int[int]' for array subscript
if (!visited[v] && (dis[v] > dis[i] + w)){
^
cities.cpp: In function 'long long int minimumSteinerTree()':
cities.cpp:44:12: warning: unused variable 'j' [-Wunused-variable]
int i, j, mask, submask;
^
cities.cpp: In function 'int main()':
cities.cpp:65:12: warning: unused variable 'j' [-Wunused-variable]
int i, j, u, v, w;
^
cities.cpp:69:57: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (i = 0; i < k; i++) scanf("%d", &special[i]);
^
cities.cpp:72:42: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &u, &v, &w);
^