Problem taxcollection
User god
Submission Time 2025-07-29 21:52:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

taxcollection.cpp:3:11: error: expected primary-expression before ‘int’
3 | int psum(*int arr[]) {
| ^~~
taxcollection.cpp: In function ‘int main()’:
taxcollection.cpp:30:41: error: expected primary-expression before ‘)’ token
30 | sort(towny, towny + towns, greater<int>);
| ^
taxcollection.cpp:33:24: error: ‘availabe_slot’ was not declared in this scope; did you mean ‘available_slot’?
33 | while(!reorder_towns[availabe_slot] == NULL) {
| ^~~~~~~~~~~~~
| available_slot
taxcollection.cpp:38:26: error: ‘psum’ cannot be used as a function
38 | print(psum(reorder_towns));
| ^
taxcollection.cpp:38:2: error: ‘print’ was not declared in this scope; did you mean ‘printf’?
38 | print(psum(reorder_towns));
| ^~~~~
| printf