biochips.cpp: In function 'std::vector<int> knap(std::vector<int>&, std::vector<int>)':
biochips.cpp:15:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<a.size(); i++)
~^~~~~~~~~
biochips.cpp:16:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<b.size() && i+j<=M; j++)
~^~~~~~~~~
biochips.cpp: In function 'int main()':
biochips.cpp:31:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&N,&M);
~~~~~^~~~~~~~~~~~~~
biochips.cpp:36:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&A,&B);
~~~~~^~~~~~~~~~~~~~
biochips.cpp:45:24: warning: 'root' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%d\n",Solve(root)[M]);
~~~~~^~~~~~