Problem fraud
User chenweilian
Submission Time 2023-11-10 13:51:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fraud.cpp: In function ‘int main()’:
fraud.cpp:91:23: error: cannot resolve overloaded function ‘max’ based on conversion to type ‘long double’
91 | leftlim = max
| ^~~
fraud.cpp:94:36: error: expected primary-expression before ‘long’
94 | leftlim = max(leftlim, long double((B[i + 1] - B[i]) / (A[i] - A[i + 1])));
| ^~~~
fraud.cpp:97:38: error: expected primary-expression before ‘long’
97 | rightlim = min(rightlim, long double((B[i] - B[i + 1]) / (A[i + 1] - A[i])));
| ^~~~