treearray.cpp: In function 'void rec()':
treearray.cpp:25:17: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
25 | if(v.size() >= n){
| ~~~~~~~~~^~~~
treearray.cpp:28:17: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
28 | if(v.size() >= m){
| ~~~~~~~~~^~~~
treearray.cpp:34:17: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
34 | if(v.size() >= n) sum1 -= v[v.size() - n];
| ~~~~~~~~~^~~~
treearray.cpp:35:17: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
35 | if(v.size() >= m) sum2 -= v[v.size() - m];
| ~~~~~~~~~^~~~
treearray.cpp:45:17: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
45 | if(v.size() >= n) sum1 += v[v.size() - n];
| ~~~~~~~~~^~~~
treearray.cpp:46:17: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
46 | if(v.size() >= m) sum2 += v[v.size() - m];
| ~~~~~~~~~^~~~
treearray.cpp: At global scope:
treearray.cpp:69:2: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
69 | main() {
| ^~~~