transfer.cpp: In function 'std::vector<int> get_attachment(std::vector<int>)':
transfer.cpp:8:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | for (int j = 0; (1 << j) < source.size(); ++j) {
| ~~~~~~~~~^~~~~~~~~~~~~~~
transfer.cpp:10:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for (int i = 0; i < source.size(); ++i) {
| ~~^~~~~~~~~~~~~~~
transfer.cpp: In function 'std::vector<int> retrieve(std::vector<int>)':
transfer.cpp:26:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for (int i = 0; i < data.size() - 9; ++i) {
| ~~^~~~~~~~~~~~~~~~~
transfer.cpp:33:41: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | for (int i = data.size() - 9; i < data.size() - 1; ++i) {
| ~~^~~~~~~~~~~~~~~~~
transfer.cpp:43:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | for (int j = 0; (1 << j) < source.size(); ++j) {
| ~~~~~~~~~^~~~~~~~~~~~~~~
transfer.cpp:45:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | for (int i = 0; i < source.size(); ++i) {
| ~~^~~~~~~~~~~~~~~
transfer.cpp:59:1: warning: control reaches end of non-void function [-Wreturn-type]
59 | }
| ^