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:50:24: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
Q.push({nx, ny});
^
YZ.cpp:50: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:62:12: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
Q.push({x, y});
^
YZ.cpp:62:18: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
Q.push({x, y});
^
YZ.cpp:83:24: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
Q.push({nx, ny});
^
YZ.cpp:83: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:91: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:94:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", A[i]);
^