Problem taxcollection
User AJigglypuffCoder
Submission Time 2026-01-21 17:10:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

taxcollection.cpp: In function ‘int main()’:
taxcollection.cpp:14:30: error: expected ‘]’ before ‘)’ token
14 | vector<int> reorderable_A[N);
| ^
| ]
taxcollection.cpp:26:5: error: ‘reorderable_A’ was not declared in this scope; did you mean ‘reorderable’?
26 | reorderable_A[i] = reorderable ? A[i] : 0;
| ^~~~~~~~~~~~~
| reorderable
taxcollection.cpp:30:3: error: ‘reorderable_A’ was not declared in this scope; did you mean ‘reorderable’?
30 | reorderable_A.resize(N);
| ^~~~~~~~~~~~~
| reorderable