Problem | departure |
---|---|
User | ryangohca |
Submission Time | 2024-02-14 11:14:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
departure.cpp: In function ‘void solve(std::vector<std::pair<long long int, long long int> >&, std::vector<std::pair<long long int, long long int> >&)’:
departure.cpp:95:51: error: no match for ‘operator-’ (operand types are ‘frac’ and ‘frac’)
95 | tmin = frmin(tmin, frac(dest, b-a)-frac(a, b-a));
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~
| | |
| frac frac
departure.cpp:26:10: note: candidate: ‘frac frac::operator-(frac&)’ <near match>
26 | frac operator-(frac &oth){
| ^~~~~~~~
departure.cpp:26:10: note: conversion of argument 1 would be ill-formed:
departure.cpp:95:52: error: cannot bind non-const lvalue reference of type ‘frac&’ to an rvalue of type ‘frac’
95 | tmin = frmin(tmin, frac(dest, b-a)-frac(a, b-a));
|