city.cpp: In function 'int main()':
city.cpp:16:27: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'bool*' [-Wformat=]
scanf("%d", &city[i][j]);
^
city.cpp:24:3: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
auto now = q.front();
^
city.cpp:24:8: error: 'now' does not name a type
auto now = q.front();
^
city.cpp:27:7: error: 'now' was not declared in this scope
if (now.first == m - 1 && now.second == n - 1)
^
city.cpp:32:7: error: 'now' was not declared in this scope
if (now.first + 1 < m)
^
city.cpp:36:7: error: 'now' was not declared in this scope
if (now.second + 1 < n)
^
city.cpp:11:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
^
city.cpp:16:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &city[i][j]);
^