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:2:
longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:45:20: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
45 | assert (A.size() == n);
| ~~~~~~~~~^~~~
longesttrip.cpp:50:21: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
50 | assert (A.size() >= (n + 1) / 2);
| ~~~~~~~~~^~~~~~~~~~~~~~
longesttrip.cpp:53:20: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
53 | assert (B.size() >= (n + 1) / 2);
| ~~~~~~~~~^~~~~~~~~~~~~~
longesttrip.cpp:61:20: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
61 | assert (A.size() == n);
| ~~~~~~~~~^~~~
longesttrip.cpp:71:22: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
71 | assert (A.size() == n);
| ~~~~~~~~~^~~~
longesttrip.cpp:81:22: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
81 | assert (B.size() == n);
| ~~~~~~~~~^~~~
longesttrip.cpp:141:21: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
141 | assert (ans.size() == n);
| ~~~~~~~~~~~^~~~