boat.cpp: In function 'long long int F(long long int, long long int)':
boat.cpp:56:12: warning: statement has no effect [-Wunused-value]
DP[x][y];
~~~~~~~^
boat.cpp:29:15: warning: unused variable 'i' [-Wunused-variable]
long long i,j,now;
^
boat.cpp: In function 'int main()':
boat.cpp:63:17: warning: unused variable 'M' [-Wunused-variable]
long long N,M,i;
^
boat.cpp: In function 'long long int F(long long int, long long int)':
boat.cpp:57:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
boat.cpp: In function 'int main()':
boat.cpp:64:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&N);
~~~~~^~~~~~~~~~~
boat.cpp:67: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]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
boat.cpp: In function 'long long int F(long long int, long long int)':
boat.cpp:33:19: warning: 'now' may be used uninitialized in this function [-Wmaybe-uninitialized]
for(auto i=0;i<now;i++)
~^~~~