Problem thanossort
User zyq69
Submission Time 2025-02-05 16:18:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

thanossort.cpp: In function ‘int thanosSort(int)’:
thanossort.cpp:22:24: error: ‘min’ was not declared in this scope; did you mean ‘std::min’?
22 | ans = max(ans, min(ret1, ret2));
| ^~~
| std::min
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from thanossort.cpp:2:
/usr/include/c++/9/bits/stl_algo.h:3456:5: note: ‘std::min’ declared here
3456 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
thanossort.cpp:22:15: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
22 | ans = max(ans, min(ret1, ret2));
| ^~~
| 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 than