shymbulak.cpp: In function ‘void fmbfs(long long int)’:
shymbulak.cpp:36:8: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for (auto to : v[x]) {
^
shymbulak.cpp:36:13: error: ‘to’ does not name a type
for (auto to : v[x]) {
^
shymbulak.cpp:47:2: error: expected ‘;’ before ‘}’ token
}
^
shymbulak.cpp:47:2: error: expected primary-expression before ‘}’ token
shymbulak.cpp:47:2: error: expected ‘;’ before ‘}’ token
shymbulak.cpp:47:2: error: expected primary-expression before ‘}’ token
shymbulak.cpp:47:2: error: expected ‘)’ before ‘}’ token
shymbulak.cpp:47:2: error: expected primary-expression before ‘}’ token
shymbulak.cpp:34:7: warning: unused variable ‘x’ [-Wunused-variable]
int x = q.front();
^
shymbulak.cpp: In function ‘bool bfs(long long int)’:
shymbulak.cpp:62:8: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for (auto to : v[x]) {
^
shymbulak.cpp:62:13: error: ‘to’ does not name a type
for (auto to : v[x]) {
^
shymbulak.cpp:73:2: error: expected ‘;’ before ‘}’ token
}
^
shymbulak.cpp:73:2: error: expected primary-expression before ‘}’ token
shymbulak.cpp:73:2: error: expected ‘;’ before ‘}’ token
shymbulak.cpp:73:2: error: expected primary-expression before ‘}’ token
shymbulak.cpp:73:2: error: expected ‘)’ before ‘}’ token
shymbulak.cpp:73:2: error: expected primary-expression before ‘}’ token
shymbulak.cpp:60:7: warning: unused variable ‘x’ [-Wunused-variable]
int x = q.front();
^
shymbulak.cpp: At global scope:
shymbulak.cpp:82:7: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
main () {
^
shymbulak.cpp: In function ‘int main()’:
shymbulak.cpp:85:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &n);
^
shymbulak.cpp:87:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
int x, y; scanf("%lld%lld", &x, &y);
^