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

Compile Error

taxcollection.cpp: In function ‘int main()’:
taxcollection.cpp:16:9: error: ‘pairs’ was not declared in this scope
16 | vector<pairs<int,int>> sortlist;
| ^~~~~
taxcollection.cpp:16:22: error: template argument 1 is invalid
16 | vector<pairs<int,int>> sortlist;
| ^~
taxcollection.cpp:16:22: error: template argument 2 is invalid
taxcollection.cpp:19:10: error: expected primary-expression before ‘int’
19 | pairs<int,int> temp;
| ^~~
taxcollection.cpp:20:4: error: ‘temp’ was not declared in this scope
20 | temp.first = townlist[i];
| ^~~~
taxcollection.cpp:22:13: error: request for member ‘push’ in ‘sortlist’, which is of non-class type ‘int’
22 | sortlist.push(temp);
| ^~~~
taxcollection.cpp:25:11: error: request for member ‘sort’ in ‘sortlist’, which is of non-class type ‘int’
25 | sortlist.so