| Problem | lps |
|---|---|
| User | wtnetlegend |
| Submission Time | 2026-01-23 08:58:14 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lps.cpp:3:13: error: ‘pair’ does not name a type
3 | using pll = pair<ll,ll>;
| ^~~~
lps.cpp:8:20: error: ‘vector’ has not been declared
8 | ll lps(ll l, ll r, vector<char>& v, vector<vector<ll>>& dp){
| ^~~~~~
lps.cpp:8:26: error: expected ‘,’ or ‘...’ before ‘<’ token
8 | ll lps(ll l, ll r, vector<char>& v, vector<vector<ll>>& dp){
| ^
lps.cpp: In function ‘ll lps(ll, ll, int)’:
lps.cpp:10:6: error: ‘dp’ was not declared in this scope
10 | if (dp[l][r] != -1) return dp[l][r];
| ^~
lps.cpp:12:3: error: ‘dp’ was not declared in this scope
12 | dp[l][r] = 1;
| ^~
lps.cpp:15:6: error: ‘v’ was not declared in this scope
15 | if (v[l] == v[r]) {
| ^
lps.cpp:16:3: error: ‘dp’ was not declared in this scope
16 | dp[l][r] = 2 + lps(l+1, r-1, v, dp);