Problem lratio
User shoryu386
Submission Time 2022-12-29 20:56:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lratio.cpp:15:18: error: ‘constexpr’ needed for in-class initialization of static data member ‘const long double LineContainer::inf’ of non-integral type [-fpermissive]
15 | static const ll inf = LLONG_MAX;
| ^~~
lratio.cpp: In member function ‘long double LineContainer::div(long double, long double)’:
lratio.cpp:17:22: error: invalid operands of types ‘long double’ and ‘long double’ to binary ‘operator^’
17 | return a / b - ((a ^ b) < 0 && a % b); }
| ~ ^ ~
| | |
| | long double
| long double
lratio.cpp:17:36: error: invalid operands of types ‘long double’ and ‘long double’ to binary ‘operator%’
17 | return a / b - ((a ^ b) < 0 && a % b); }
| ~ ^ ~
| | |
| | long double
|