xorsum.cpp: In function 'std::vector<std::pair<long long int, int> > parse(std::vector<long long int>&)':
xorsum.cpp:13:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | while(l < v.size()) {
| ~~^~~~~~~~~~
xorsum.cpp:15:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | while(r < v.size() and v[l] == v[r]) r += 1;
| ~~^~~~~~~~~~
xorsum.cpp: In function 'long long int get_pairs(std::vector<std::pair<long long int, int> >&, long long int)':
xorsum.cpp:43:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | for(int i = 0; i < v.size(); i++) suffix_sum.emplace_back(v[i].second);
| ~~^~~~~~~~~~
xorsum.cpp:48:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | for(int i = 0; i < v.size(); i++) {
| ~~^~~~~~~~~~
xorsum.cpp: In function 'long long int get_bits(int, long long int)':
xorsum.cpp:77:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
77 | for(int i = 0; i < zeros_values.size(); i++) a[i] = zeros_values[i];
| ~~^~~~~~~~~~~~~~~~~~~~~
xorsum.cpp:78:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
78 | for(int i = 0; i < ones_values.size(); i++) a[i + zeros_values.size()] = ones_values[i];
| ~~^~~~~~~~~~~~~~~~~~~~
xorsum.cpp: In function 'int main()':
xorsum.cpp:83:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
83 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
xorsum.cpp:86:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
86 | scanf("%lld", a + i);
| ~~~~~^~~~~~~~~~~~~~~