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