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