transfer.cpp: In function 'std::vector<int> get_attachment(std::vector<int>)':
transfer.cpp:11:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | for(int i=0;i<source.size();i++)if(source[i] == 1)ans ^= i;
| ~^~~~~~~~~~~~~~
transfer.cpp:24:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for(int i=n;i<source.size();i++)kk ^= source[i];
| ~^~~~~~~~~~~~~~
transfer.cpp: In function 'std::vector<int> retrieve(std::vector<int>)':
transfer.cpp:31:15: 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=n;i<data.size()-1;i++)temp ^= data[i];
| ~^~~~~~~~~~~~~~
transfer.cpp:75:1: warning: control reaches end of non-void function [-Wreturn-type]
75 | }
| ^
transfer.cpp:32:2: warning: 'temp' may be used uninitialized in this function [-Wmaybe-uninitialized]
32 | if(temp == data[data.size()-1]) // the part of ans1 has been changed.
| ^~