| Problem | taxcollection |
|---|---|
| User | vadar2525 |
| Submission Time | 2026-06-24 16:53:26 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
taxcollection.cpp: In function ‘int main()’:
taxcollection.cpp:11:22: error: template argument 1 is invalid
11 | vector<int a(n), b(n);
| ^
taxcollection.cpp:11:22: error: template argument 2 is invalid
taxcollection.cpp:13:10: error: ‘a’ was not declared in this scope
13 | cin >> a[i];
| ^
taxcollection.cpp:16:10: error: ‘b’ was not declared in this scope
16 | cin >> b[i];
| ^
taxcollection.cpp:20:6: error: ‘b’ was not declared in this scope
20 | if(b[i] == 1){
| ^
taxcollection.cpp:21:4: error: ‘c’ was not declared in this scope
21 | c.push_back(a[i]));
| ^
taxcollection.cpp:21:16: error: ‘a’ was not declared in this scope
21 | c.push_back(a[i]));
| ^
taxcollection.cpp:24:7: error: ‘c’ was not declared in this scope
24 | sort(c.begin(), c.end(), greater<int>());