| Problem | tickets |
|---|---|
| User | justin271828 |
| Submission Time | 2025-11-14 16:02:51 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
tickets.cpp: In function ‘long long int find_maximum(int, std::vector<std::vector<int> >)’:
tickets.cpp:14:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
14 | sort(v.begin(), v.end());
| ^~~~
| short
tickets.cpp:16:24: error: ‘abs’ was not declared in this scope; did you mean ‘ans’?
16 | for (int k: v) ans += abs(k-v[v.size()/2]);
| ^~~
| ans
tickets.cpp:17:19: error: could not convert ‘(int (*)[1])(& answer)’ from ‘int (*)[1]’ to ‘std::vector<std::vector<int> >’
17 | allocate_tickets(answer);
| ^~~~~~
| |
| int (*)[1]