homecoming.cpp: In function 'int main()':
homecoming.cpp:86:29: error: cannot convert 'll* {aka long long int*}' to 'int*' for argument '3' to 'll solve(int, int, int*, int*)'
cout << solve(nn, K, _A, _B);
^
homecoming.cpp:78:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("in.txt", "r", stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
homecoming.cpp:79:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("outt.txt", "w", stdout);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
homecoming.cpp:81:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld",&nn ,&K);
~~~~~^~~~~~~~~~~~~~~~~~~~~
homecoming.cpp:83:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",_A + i);
~~~~~^~~~~~~~~~~~~~~
homecoming.cpp:85:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",_B + i);
~~~~~^~~~~~~~~~~~~~~