abduction2.cpp: In function 'll solve(int, int, int)':
abduction2.cpp:97:71: error: expected ')' before '}' token
97 | else if (r == n+1) ans = max(1ll*(n-i), (1ll*(i-l) + solve(l, j, 0))});
| ~ ^
| )
abduction2.cpp:97:72: error: expected primary-expression before ')' token
97 | else if (r == n+1) ans = max(1ll*(n-i), (1ll*(i-l) + solve(l, j, 0))});
| ^
abduction2.cpp:98:3: error: 'else' without a previous 'if'
98 | else ans = max(1ll*(r-i) + solve(r, j, 0), 1ll*(i-l) + solve(l, j, 0));
| ^~~~
abduction2.cpp:98:23: error: 'r' was not declared in this scope
98 | else ans = max(1ll*(r-i) + solve(r, j, 0), 1ll*(i-l) + solve(l, j, 0));
| ^
abduction2.cpp:98:53: error: 'l' was not declared in this scope
98 | else ans = max(1ll*(r-i) + solve(r, j, 0), 1ll*(i-l) + solve(l, j, 0));
| ^
abduction2.cpp: At global scope:
abduction2.cpp:101:2: error: expected unqualified-id before 'return'
101 | return dp[i][q][j] = ans;
| ^~~~~~
abduction2.cpp:102:1: error: expected declaration before '}' token
102 | }
| ^
abduction2.cpp: In function 'll solve(int, int, int)':
abduction2.cpp:99:2: warning: control reaches end of non-void function [-Wreturn-type]
99 | }
| ^
abduction2.cpp: In function 'int main()':
abduction2.cpp:107:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
107 | scanf("%d %d %d", &n, &m, &q);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
abduction2.cpp:110:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
110 | scanf("%d", &a[0][i]);
| ~~~~~^~~~~~~~~~~~~~~~
abduction2.cpp:113:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
113 | scanf("%d", &a[1][i]);
| ~~~~~^~~~~~~~~~~~~~~~
abduction2.cpp:120:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
120 | scanf("%d %d", &i, &j);
| ~~~~~^~~~~~~~~~~~~~~~~