foo.cc: In function 'void dfs(int)':
foo.cc:13:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
13 | if(chosen.size()>k||chosen.size()+n-dep+1<k) return;
| ~~~~~~~~~~~~~^~
foo.cc:13:50: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
13 | if(chosen.size()>k||chosen.size()+n-dep+1<k) return;
| ~~~~~~~~~~~~~~~~~~~~~^~
foo.cc:16:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | for(int i=0;i<chosen.size();i++) sum+=a[chosen[i]];
| ~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务