Problem | karina |
---|---|
User | popperoni |
Submission Time | 2024-12-21 13:57:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
karina.cpp: In function ‘long long int dp(long long int, long long int, bool)’:
karina.cpp:63:33: error: ‘at’ was not declared in this scope; did you mean ‘a’?
63 | return mem[l][r][bbb]=max(dp(l,at[root->qry(l,r)],1)+abs(a-at[root->qry(l,r)]),dp(at[root->qry(l,r)],r,0)+abs(at[root->qry(l,r)]-a));
| ^~
| a
karina.cpp: At global scope:
karina.cpp:65:4: error: conflicting declaration ‘long long int mem [200003]’
65 | ll mem[maxn];
| ^~~
karina.cpp:55:4: note: previous declaration as ‘long long int mem [200003][200003][2]’
55 | ll mem[maxn][maxn][2];
| ^~~
karina.cpp: In function ‘int main()’:
karina.cpp:70:40: error: expected ‘;’ before ‘for’
70 | ll n;cin>>n;memset(mem,-1,sizeof(mem))
| ^
| ;
71 | for(ll i=0;i<n;i++){