boat.cpp: In function 'int main()':
boat.cpp:24:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<mjk.size()-1;j++){
^
boat.cpp:31:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<mjk.size()-1;i++)
^
boat.cpp:12:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&n);
^
boat.cpp:16:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
mjk.push_back(b[i]);
^