Problem fraud
User Josh28acc2
Submission Time 2024-02-22 12:58:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fraud.cpp: In function ‘void solve()’:
fraud.cpp:40:20: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
40 | maxn = max(maxn, (ld)(a[q+1] - a[q])/(ld)(b[q] - b[q+1]));
| ^~~
| std::max
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from fraud.cpp:26:
/usr/include/c++/9/bits/stl_algo.h:3468:5: note: ‘std::max’ declared here
3468 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
fraud.cpp:42:20: error: ‘min’ was not declared in this scope; did you mean ‘std::min’?
42 | minn = min(minn, (ld)(a[q+1] - a[q])/(ld)(b[q] - b[q+1]));
| ^~~
| std::min
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++