Problem maximum
User NeeNawAmbulance
Submission Time 2023-03-05 09:55:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

maximum.cpp: In function ‘int main()’:
maximum.cpp:2:56: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
2 | int main() {int a, b; std::cin >> a >> b; std::cout << max(a, b);}
| ^~~
| 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 maximum.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:3468:5: note: ‘std::max’ declared here
3468 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~