foo.cc: In function 'int getMinSwaps(std::vector<int>&)':
foo.cc:10:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for(int i=0;i<nums.size();i++)
| ~^~~~~~~~~~~~
foo.cc:13:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | for(int i=0;i<v.size();i++){
| ~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务