shymbulak.cpp: In function ‘void run(int)’:
shymbulak.cpp:42:8: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for (auto u : g[v]) if (d[u] == -1) {
^
shymbulak.cpp:42:13: error: ‘u’ does not name a type
for (auto u : g[v]) if (d[u] == -1) {
^
shymbulak.cpp:45:2: error: expected ‘;’ before ‘}’ token
}
^
shymbulak.cpp:45:2: error: expected primary-expression before ‘}’ token
shymbulak.cpp:45:2: error: expected ‘;’ before ‘}’ token
shymbulak.cpp:45:2: error: expected primary-expression before ‘}’ token
shymbulak.cpp:45:2: error: expected ‘)’ before ‘}’ token
shymbulak.cpp:45:2: error: expected primary-expression before ‘}’ token
shymbulak.cpp:41:7: warning: unused variable ‘v’ [-Wunused-variable]
int v = q.front(); q.pop();
^
shymbulak.cpp: In function ‘int main()’:
shymbulak.cpp:66:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
shymbulak.cpp:69:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
int v, u; scanf("%d%d", &v, &u);
^