feast.cpp: In function 'int solve(ll)':
feast.cpp:19:9: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^
feast.cpp: In function 'int main()':
feast.cpp:44:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
ll mid=lo+hi>>1;
~~^~~
feast.cpp:36:9: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^
feast.cpp:38:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &K);
~~~~~^~~~~~~~~~~~~~~~
feast.cpp:39:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1; i<=N; i++) scanf("%lld", &A[i]);
~~~~~^~~~~~~~~~~~~~~