kthpath.cpp: In function 'int main()':
kthpath.cpp:25:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
25 | scanf("%d%d",&n,&m); len=n+m-1;
| ~~~~~^~~~~~~~~~~~~~
kthpath.cpp:28:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
28 | scanf(" %c",&arr[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~~~
kthpath.cpp:30:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
30 | scanf("%lld",&k);
| ~~~~~^~~~~~~~~~~