YZ.cpp: In function 'int get(int, int)':
YZ.cpp:21:12: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
Q.push({x, y});
^
YZ.cpp:21:18: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
Q.push({x, y});
^
YZ.cpp:45:24: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
Q.push({nx, ny});
^
YZ.cpp:45:32: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
Q.push({nx, ny});
^
YZ.cpp: In function 'void fill(int, int, int)':
YZ.cpp:57:12: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
Q.push({x, y});
^
YZ.cpp:57:18: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
Q.push({x, y});
^
YZ.cpp:78:24: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
Q.push({nx, ny});
^
YZ.cpp:78:32: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
Q.push({nx, ny});
^
YZ.cpp: In function 'int main()':
YZ.cpp:86:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
^
YZ.cpp:89:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", A[i]);
^