staciakampis.cpp: In function 'bool possible(int, ll, ll)':
staciakampis.cpp:18:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return a[k] == lw && b[k] == lh
~~~~~~~~~~~^~~~~~~~~~~~~
staciakampis.cpp:21:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return a[k] == lw && b[k] <= lh && possible(k-1, lw, lh - b[k])
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
staciakampis.cpp:23:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
|| b[k] == lw && a[k] <= lh && possible(k-1, lw, lh - a[k])
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
staciakampis.cpp:24:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
|| b[k] == lh && a[k] <= lw && possible(k-1, lw - a[k], lh);
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
staciakampis.cpp: In function 'int main()':
staciakampis.cpp:40:30: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n", sol.size());
~~~~~~~~~~^
staciakampis.cpp:28:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
staciakampis.cpp:30:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld", &a[i], &b[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~