Problem taxcollection
User RandomCtfNoob
Submission Time 2026-01-12 16:12:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

taxcollection.cpp: In function ‘int main()’:
taxcollection.cpp:22:13: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘push’
22 | sortlist.push(temp);
| ^~~~
taxcollection.cpp:25:11: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘sort’
25 | sortlist.sort(sortlist,sortlist.size());
| ^~~~
taxcollection.cpp:41:10: error: expected ‘}’ at end of input
41 | return 0;
| ^
taxcollection.cpp:4:11: note: to match this ‘{’
4 | int main(){
| ^