Problem tickets
User Cookie
Submission Time 2024-06-30 14:24:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

tickets.cpp: In function ‘long long int sub56::solve()’:
tickets.cpp:172:15: error: ‘n’ was not declared in this scope
172 | dp[0][n / 2 * g] = 0;
| ^
tickets.cpp:174:79: error: ‘k’ was not declared in this scope
174 | for(int j = max(0, (w / 2 * g) - g * i); j <= min(w * g, (w / 2 * k) + g * i); j++){
| ^
tickets.cpp:176:51: error: ‘m’ was not declared in this scope
176 | ll dif = -pref[i][k] + suf[i][m - (g - k)];
| ^
tickets.cpp:192:25: error: ‘m’ was not declared in this scope
192 | for(int j = m - 1; j >= m - (g - trace[i][coef].fi) + 1; j--){
| ^