boat.cpp: In function 'int main()':
boat.cpp:57:72: error: too few arguments to function 'long long int mod(long long int, int)'
57 | for(int j = 1; j < N; j++) dp[i][j] = mod(dp[i][j] + dp[i][j-1]);
| ^
boat.cpp:21:6: note: declared here
21 | long mod(long a, int M) {
| ^~~
boat.cpp:60:59: error: too few arguments to function 'long long int mod(long long int, int)'
60 | for(int i = 1; i <= n; i++) ans = mod(ans + dp[i][N-1]);
| ^
boat.cpp:21:6: note: declared here
21 | long mod(long a, int M) {
| ^~~
boat.cpp:32:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
32 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
boat.cpp:34:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
34 | scanf("%d %d", a+i, b+i);
| ~~~~~^~~~~~~~~~~~~~~~~~~