Problem area_noi
User innerspace777
Submission Time 2024-05-25 16:31:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

area_noi.cpp: In function ‘int32_t main()’:
area_noi.cpp:10:17: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
10 | total = max(total, 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 area_noi.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)
| ^~~