Problem shops
User ashgreninja1006
Submission Time 2025-02-24 19:24:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

shops.cpp: In function ‘int main()’:
shops.cpp:91:65: error: no match for ‘operator%’ (operand types are ‘std::vector<int>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’} and ‘int’)
91 | if (find(order.begin(), order.end(), i) - order.begin() % 2 == 0) {
| ~~~~~~~~~~~~~ ^ ~
| | |
| | int
| std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}