Problem fractions
User gordonlu
Submission Time 2023-11-17 13:17:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fractions.cpp: In lambda function:
fractions.cpp:27:13: error: no match for ‘operator*’ (operand type is ‘const std::pair<double, double>’)
27 | return ((*pairA - copy.begin()) < (*pairB - copy.begin()));
| ^~~~~~
fractions.cpp:27:39: error: no match for ‘operator*’ (operand type is ‘const std::pair<double, double>’)
27 | return ((*pairA - copy.begin()) < (*pairB - copy.begin()));
| ^~~~~~