bus.cpp: In function ‘void dfs(int)’:
bus.cpp:15:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (h < idx[1].size()) maxi = max(maxi, t[1][h]);
^
bus.cpp:18:7: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for (auto t : adj[h]) dfs(t);
^
bus.cpp:18:12: error: ‘t’ does not name a type
for (auto t : adj[h]) dfs(t);
^
bus.cpp:19:1: error: expected ‘;’ before ‘}’ token
}
^
bus.cpp:19:1: error: expected primary-expression before ‘}’ token
bus.cpp:19:1: error: expected ‘;’ before ‘}’ token
bus.cpp:19:1: error: expected primary-expression before ‘}’ token
bus.cpp:19:1: error: expected ‘)’ before ‘}’ token
bus.cpp:19:1: error: expected primary-expression before ‘}’ token
bus.cpp: In function ‘int main()’:
bus.cpp:30:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < t[i].size(); j++) {
^
bus.cpp:21:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
^
bus.cpp:23:59: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d", &s[i].a, &s[i].b, &s[i].x, &s[i].y);
^
bus.cpp:40:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &q);
^
bus.cpp:42:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&query[i].first);
^