boat.cpp: In function 'll comb(ll, ll)':
boat.cpp:28:8: warning: unused variable 'j' [-Wunused-variable]
ll i, j;
^
boat.cpp: In function 'int main()':
boat.cpp:46:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0; j<comp.size(); j++) psum[0][j]=1;
~^~~~~~~~~~~~
boat.cpp:49:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0; j<comp.size(); j++)
~^~~~~~~~~~~~
boat.cpp:66:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=1; j<comp.size(); j++) psum[i][j]=(dp[i][j]+psum[i][j-1])%MOD;
~^~~~~~~~~~~~
boat.cpp:40:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
~~~~~^~~~~~~~~~
boat.cpp:41:79: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1; i<=N; i++) scanf("%d%d", &A[i], &B[i]), B[i]++, comp.push_back(A[i]), comp.push_back(B[i]);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~