Problem sandwich
User gohchingjayk
Submission Time 2026-06-21 22:13:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sandwich.cpp: In lambda function:
sandwich.cpp:117:30: error: ‘answers’ was not declared in this scope
117 | for (auto [q, i] : quers) answers[i]++;
| ^~~~~~~
sandwich.cpp:149:37: error: ‘answers’ was not declared in this scope
149 | for (int q : quersEndingAt[i-m]) answers[q] += ar;
| ^~~~~~~
sandwich.cpp:167:45: error: ‘answers’ was not declared in this scope
167 | for (auto [_, q] : quersStartingAt[i-l]) answers[q] += al;
| ^~~~~~~
sandwich.cpp:223:5: error: ‘answers’ was not declared in this scope
223 | answers[q] += pref[buck] + add[buck] * (prefsum[min(r, ends[buck])-m] - (buck ? prefsum[ends[buck-1]-m] : 0));
| ^~~~~~~
sandwich.cpp: In function ‘int main()’:
sandwich.cpp:231:19: error: ‘queries’ was not declared in this scope
231 | dnc(dnc, 0, N-1, queries);
|