books.cpp: In function 'void solve(int, int, long long int, int)':
books.cpp:32:21: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'long long int' [-Wsign-compare]
32 | if (sum > 2 * A)
| ~~~~^~~~~~~
books.cpp:36:17: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'long long int' [-Wsign-compare]
36 | if (sum >= A && sum <= 2 * A) {
| ~~~~^~~~
books.cpp:36:29: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'long long int' [-Wsign-compare]
36 | if (sum >= A && sum <= 2 * A) {
| ~~~~^~~~~~~~
books.cpp:42:17: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'long long int' [-Wsign-compare]
42 | if (sum < A)
| ~~~~^~~
books.cpp:44:17: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'long long int' [-Wsign-compare]
44 | if (sum > 2 * A)
| ~~~~^~~~~~~
books.cpp:53:17: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'long long int' [-Wsign-compare]
53 | if (val >= A) {
| ~~~~^~~~
books.cpp:65:17: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'long long int' [-Wsign-compare]
65 | if (sum >= A && sum <= 2 * A) {
| ~~~~^~~~
books.cpp:65:29: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'long long int' [-Wsign-compare]
65 | if (sum >= A && sum <= 2 * A) {
| ~~~~^~~~~~~~