Problem squarerect
User sporknives
Submission Time 2025-11-13 13:26:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

squarerect.cpp: In function ‘bool am_i_square(int, int)’:
squarerect.cpp:6:17: error: ‘inside_shape’ was not declared in this scope
6 | inside[i][j]=inside_shape((i+1)*N/5,(j+1)*N/5);
| ^~~~~~~~~~~~
squarerect.cpp:13:2: error: ‘pair’ was not declared in this scope
13 | pair<int,int> tl;
| ^~~~
squarerect.cpp:13:7: error: expected primary-expression before ‘int’
13 | pair<int,int> tl;
| ^~~
squarerect.cpp:17:5: error: ‘tl’ was not declared in this scope
17 | tl={(i+1)*N/5,(j+1)*N/5};
| ^~
squarerect.cpp:25:7: error: expected primary-expression before ‘int’
25 | pair<int,int> br;
| ^~~
squarerect.cpp:29:5: error: ‘br’ was not declared in this scope
29 | br={(i+1)*N/5,(j+1)*N/5};
| ^~
squarerect.cpp:37:11: error: ‘tl’ was not declared in this scope
37 | int left=tl.first;
| ^~
squar