Problem makingparallelograms
User Hengweezy
Submission Time 2024-01-31 17:04:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

makingparallelograms.cpp: In function ‘int main()’:
makingparallelograms.cpp:19:22: error: no match for ‘operator[]’ (operand types are ‘std::_Rb_tree_iterator<std::pair<const int, int> >’ and ‘int’)
19 | pairs += lines[*cur[1]] /2;
| ^