kthpath.cpp: In function 'int main()':
kthpath.cpp:15:25: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[40]' [-Wformat=]
scanf("%s",&a[i]);
~~~~~^
kthpath.cpp:24:46: warning: array subscript has type 'char' [-Wchar-subscripts]
scanf("%lld",&k); d[0][1][1]=1; dap[++top]=a[1][1];
^
kthpath.cpp:44:18: warning: array subscript has type 'char' [-Wchar-subscripts]
dap[++top]=char(p+'a'-1);
^
kthpath.cpp:13:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
~~~~~^~~~~~~~~~~~~~~
kthpath.cpp:15:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&a[i]);
~~~~~^~~~~~~~~~~~
kthpath.cpp:24:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&k); d[0][1][1]=1; dap[++top]=a[1][1];
~~~~~^~~~~~~~~~~