longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:60:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for(int i=0;i<S.size();i++){
| ~^~~~~~~~~
longesttrip.cpp:65:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
65 | for(int i=1;i<R.size();i++){
| ~^~~~~~~~~
longesttrip.cpp:71:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
71 | while(iter<C.size()){
| ~~~~^~~~~~~~~
longesttrip.cpp:78:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
78 | if(iter+1>=C.size())break;
| ~~~~~~^~~~~~~~~~
longesttrip.cpp:92:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
92 | for(int i=0;i<S.size();i++){
| ~^~~~~~~~~
longesttrip.cpp:141:19: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
141 | while(tmp1.size()!=target){
| ~~~~~~~~~~~^~~~~~~~
longesttrip.cpp:154:19: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
154 | while(tmp1.size()!=target){
| ~~~~~~~~~~~^~~~~~~~
longesttrip.cpp:164:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
164 | for(int i=0;i<S[0].size();i++){
| ~^~~~~~~~~~~~
longesttrip.cpp:169:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
169 | for(int i=0;i<S[1].size();i++){
| ~^~~~~~~~~~~~