vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:25:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | for(int i=0; i<by_sum.size(); i++) {
| ~^~~~~~~~~~~~~~
vision.cpp:26:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | if(i + K < by_sum.size()) {
| ~~~~~~^~~~~~~~~~~~~~~
vision.cpp:31:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | for(int i=0; i<by_diff.size(); i++) {
| ~^~~~~~~~~~~~~~~
vision.cpp:32:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | if(i + K < by_diff.size()) {
| ~~~~~~^~~~~~~~~~~~~~~~
vision.cpp:42:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | for(int i=0; i<by_sum.size(); i++) {
| ~^~~~~~~~~~~~~~
vision.cpp:43:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | if(i + 2 + K < by_sum.size()) {
| ~~~~~~~~~~^~~~~~~~~~~~~~~
vision.cpp:52:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
52 | for(int j=i+1+K; j<by_sum.size(); j++) all_nxt.push_back(by_sum[j]);
| ~^~~~~~~~~~~~~~
vision.cpp:57:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
57 | for(int i=0; i<by_diff.size(); i++) {
| ~^~~~~~~~~~~~~~~
vision.cpp:58:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
58 | if(i + 2 + K < by_diff.size()) {
| ~~~~~~~~~~^~~~~~~~~~~~~~~~
vision.cpp:67:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
67 | for(int j=i+1+K; j<by_diff.size(); j++) all_nxt.push_back(by_diff[j]);
| ~^~~~~~~~~~~~~~~