Problem squarerect
User red24
Submission Time 2023-01-29 19:02:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

squarerect.cpp: In function ‘bool am_i_square(int, int)’:
squarerect.cpp:12:8: error: ‘inside_shape’ was not declared in this scope
12 | if (inside_shape(i, j))
| ^~~~~~~~~~~~
squarerect.cpp:14:9: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
14 | a = max(a, i);
| ^~~
| 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 squarerect.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)
| ^~~
squarerect.cpp:15:9: error: ‘min’ was not declared in this scope; did you mean ‘std::min’?
15 | b = min(b, i);
| ^~~
| std::min
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_6