kthpath.cpp: In function 'void dfs(long long int, long long int)':
kthpath.cpp:30:24: warning: comparison of integer expressions of different signedness: 'std::multiset<std::vector<char> >::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
30 | if (ans.size() > k)ans.erase(it);
| ~~~~~~~~~~~^~~
kthpath.cpp: At global scope:
kthpath.cpp:46:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
46 | main(){
| ^
kthpath.cpp: In function 'int main()':
kthpath.cpp:59:15: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
59 | for (i=0;i<v.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:48:5: note: in expansion of macro 'scan2'
48 | scan2(n,m)
| ^~~~~