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