Problem supperbox
User YSH2020
Submission Time 2025-10-29 14:35:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

supperbox.cpp: In function ‘void solve(long long int, long long int, std::vector<std::vector<long long int> >)’:
supperbox.cpp:9:14: error: ‘n’ was not declared in this scope
9 | int pref[n][2005]; //start from m+1, end at e
| ^
supperbox.cpp:11:36: error: ‘pref’ was not declared in this scope
11 | for (int i = 0; i < 2005; i++) pref[m+1][i]=0;
| ^~~~
supperbox.cpp:12:5: error: ‘pref’ was not declared in this scope
12 | pref[m+1][a[m+1].first]=a[m+1].second;
| ^~~~
supperbox.cpp:18:36: error: ‘suff’ was not declared in this scope
18 | for (int i = 0; i < 2005; i++) suff[m][i]=0;
| ^~~~
supperbox.cpp:19:5: error: ‘suff’ was not declared in this scope
19 | suff[m][a[m].first]=a[m].second;
| ^~~~
supperbox.cpp:20:26: error: ISO C++ forbids comparison between pointer and