Main.cpp: In function 'int main()':
Main.cpp:37:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | if(pos != L.size() && mid + R[pos] <= A[i] - A[i - 1])
| ~~~~^~~~~~~~~~~
Main.cpp:48:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | if(pos != R.size() && mid + L[pos] <= A[i + 1] - A[i])
| ~~~~^~~~~~~~~~~
Main.cpp:18:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | scanf("%d%d", &n, &q);
| ~~~~~^~~~~~~~~~~~~~~~
Main.cpp:19:32: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
19 | for(int i = 0;i < n;i++) scanf("%lld", A + i);
| ~~~~~^~~~~~~~~~~~~~~
Main.cpp:20:32: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | for(int i = 0;i < q;i++) scanf("%lld", B + i);
| ~~~~~^~~~~~~~~~~~~~~