Problem squarerect
User justin271828
Submission Time 2025-03-04 16:01:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

squarerect.cpp: In function ‘bool am_i_square(int, int)’:
squarerect.cpp:2:2: error: ‘pair’ was not declared in this scope
2 | pair<int, int> temp = {-1, -1};
| ^~~~
squarerect.cpp:2:7: error: expected primary-expression before ‘int’
2 | pair<int, int> temp = {-1, -1};
| ^~~
squarerect.cpp:5:8: error: ‘inside_shape’ was not declared in this scope
5 | if (inside_shape(x, y)) {
| ^~~~~~~~~~~~
squarerect.cpp:6:5: error: ‘temp’ was not declared in this scope
6 | temp = {x, y};
| ^~~~
squarerect.cpp:9:7: error: ‘temp’ was not declared in this scope
9 | if (temp.first >= 0) break;
| ^~~~
squarerect.cpp:10:7: error: ‘inside_shape’ was not declared in this scope
10 | if (inside_shape(x, 1)) {
| ^~~~~~~~~~~~
squarerect.cpp:11:4: error: ‘temp’ was not declared in this scope
11 | temp = {x, 1};
| ^~~~