longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:44:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
44 | for(i=0;i+1<v1.size();i++)assert(are_connected({v1[i]}, {v1[i+1]}));
| ~~~^~~~~~~~~~
In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from longesttrip.cpp:3:
longesttrip.cpp:45:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
45 | assert(v1.size()==N);
| ~~~~~~~~~^~~
longesttrip.cpp:55:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | for(i=0;i+1<v1.size();i++)assert(are_connected({v1[i]}, {v1[i+1]}));
| ~~~^~~~~~~~~~
In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from longesttrip.cpp:3:
longesttrip.cpp:56:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
56 | assert(v1.size()==N);
| ~~~~~~~~~^~~
longesttrip.cpp:64:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
64 | int m=s+e>>1;
| ~^~
longesttrip.cpp:70:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
70 | for(i=s;i<v2.size();i++)v1.push_back(v2[i]);
| ~^~~~~~~~~~
longesttrip.cpp:72:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
72 | for(i=0;i+1<v1.size();i++)assert(are_connected({v1[i]}, {v1[i+1]}));
| ~~~^~~~~~~~~~
In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from longesttrip.cpp:3:
longesttrip.cpp:73:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
73 | assert(v1.size()==N);
| ~~~~~~~~~^~~
longesttrip.cpp:82:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
82 | int m=s+e>>1;
| ~^~
longesttrip.cpp:89:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
89 | for(i=s;i<v2.size();i++)v1.push_back(v2[i]);
| ~^~~~~~~~~~
longesttrip.cpp:91:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
91 | for(i=0;i+1<v1.size();i++)assert(are_connected({v1[i]}, {v1[i+1]}));
| ~~~^~~~~~~~~~
In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from longesttrip.cpp:3:
longesttrip.cpp:92:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
92 | assert(v1.size()==N);
| ~~~~~~~~~^~~
longesttrip.cpp:98:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
98 | int m=s+e>>1;
| ~^~
longesttrip.cpp:109:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
109 | int m=s+e>>1;
| ~^~
longesttrip.cpp:118:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
118 | for(i=s;i<v2.size();i++)ans.push_back(v2[i]);
| ~^~~~~~~~~~
longesttrip.cpp:121:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
121 | for(i=0;i+1<v1.size();i++)assert(are_connected({v1[i]}, {v1[i+1]}));
| ~~~^~~~~~~~~~
In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from longesttrip.cpp:3:
longesttrip.cpp:122:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
122 | assert(v1.size()==N);
| ~~~~~~~~~^~~