Problem taxcollection
User ThinkingGeek257
Submission Time 2026-06-24 16:54:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

taxcollection.cpp: In function ‘int main()’:
taxcollection.cpp:27:43: error: expected ‘)’ before ‘;’ token
27 | sort(changable.rbegin(), changable.rend();
| ~ ^
| )
taxcollection.cpp:33:14: error: ‘i’ was not declared in this scope
33 | sum += (n-i)*(changable[p1]);
| ^