kthpath.cpp: In function 'void dfs(long long int, long long int)':
kthpath.cpp:33:24: warning: comparison of integer expressions of different signedness: 'std::vector<std::vector<char> >::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
33 | if (ans.size() > k)ans.pop_back();
| ~~~~~~~~~~~^~~
kthpath.cpp: At global scope:
kthpath.cpp:49:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
49 | main(){
| ^
kthpath.cpp: In function 'int main()':
kthpath.cpp:60:15: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for (i=0;i<ans[k-1].size();++i){
| ~^~~~~~~~~~~~~~~~
kthpath.cpp:12:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
12 | #define scan2(a,b) scanf("%lld %lld",&a, &b);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
kthpath.cpp:51:5: note: in expansion of macro 'scan2'
51 | scan2(n,m)
| ^~~~~