paprike.cpp: In function 'void dfs(int, int)':
paprike.cpp:24:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for(int i=0;i<c.size();i++) {
| ~^~~~~~~~~
paprike.cpp: In function 'int main()':
paprike.cpp:35:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
35 | scanf("%d%lld",&n,&k);
| ~~~~~^~~~~~~~~~~~~~~~
paprike.cpp:36:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
36 | for(int i=0;i<n;i++) scanf("%lld",&a[i]);
| ~~~~~^~~~~~~~~~~~~~
paprike.cpp:38:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
38 | int u,v; scanf("%d%d",&u,&v);
| ~~~~~^~~~~~~~~~~~~~