Problem supperbox
User Tyx2019
Submission Time 2025-08-28 14:17:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

In file included from /usr/include/c++/9/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from supperbox.cpp:1:
supperbox.cpp: In function ‘int main()’:
supperbox.cpp:72:22: error: request for member ‘size’ in ‘split’, which is of non-class type ‘long long int’
72 | assert(DPbak[split.size() > left)
| ^~~~
supperbox.cpp:72:3: error: expected ‘]’ before ‘)’ token
72 | assert(DPbak[split.size() > left)
| ^~~~~~
supperbox.cpp:78:4: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
78 | ans = max(ans, D.A[i]+E.A[X-i]);
| ^~~
| abs
supperbox.cpp:80:11: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
80 | cout << ans << '\n';
| ^~~
| abs