foo.cc: In function 'int main()':
foo.cc:69:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
69 | for (int i=0;i<a.size();i++) {
| ~^~~~~~~~~
foo.cc:72:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
72 | for (int i=0;i<b.size();i++) {
| ~^~~~~~~~~
foo.cc:76:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Count>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
76 | for (int i=0;i<cnt.size();i++) {
| ~^~~~~~~~~~~
foo.cc:84:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Count>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
84 | for (int i=0;i<cnt.size()-1;i++) {
| ~^~~~~~~~~~~~~
foo.cc:111:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
111 | for (int i=0;i<choice[0].size();i++) {
| ~^~~~~~~~~~~~~~~~~
foo.cc:113:42: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
113 | for (int j=choice[0][i];j<a.size();j++) t[j]=1;
| ~^~~~~~~~~
foo.cc:120:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
120 | for (int j=0;j<a.size();j++) sum+=(t[j]+1)%2*a[j];////
| ~^~~~~~~~~
foo.cc:124:49: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
124 | for (int ii=0;ii<a.size();ii++) jj+=(char)(t[ii]+'0');
| ~~^~~~~~~~~
foo.cc:130:49: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
130 | for (int ii=0;ii<a.size();ii++) jj+=(char)(1^t[ii]+'0');
| ~~^~~~~~~~~
foo.cc:130:83: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
130 | for (int ii=0;ii<a.size();ii++) jj+=(char)(1^t[ii]+'0');
| ~~~~~^~~~
foo.cc:139:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
139 | for (int i=0;i<a.size();i++) {
| ~^~~~~~~~~
foo.cc:162:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
162 | for (int i=0;i<b.size();i++) {
| ~^~~~~~~~~
foo.cc:110:13: warning: unused variable 'k' [-Wunused-variable]
110 | int k=0;
| ^
[Hydro](https://hydro.ac)提供评测服务