Problem | squarerect |
---|---|
User | Xiaoyang |
Submission Time | 2023-12-26 14:17:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
squarerect.cpp: In function ‘bool am_i_square(int, int)’:
squarerect.cpp:40:14: error: ‘x’ was not declared in this scope
40 | if(aa or cc)x=n/2;
| ^
squarerect.cpp:41:7: error: ‘x’ was not declared in this scope
41 | else x=n/2+1;
| ^
squarerect.cpp:42:14: error: ‘y’ was not declared in this scope
42 | if(bb or aa)y=n/2;
| ^
squarerect.cpp:43:7: error: ‘y’ was not declared in this scope
43 | else y=n/2+1;
| ^
squarerect.cpp:44:10: error: ‘x’ was not declared in this scope
44 | ll l=x,r=x,u=y,d=y;
| ^
squarerect.cpp:46:39: error: ‘y’ was not declared in this scope
46 | while(l-i>0 and inside_shape(l-i,y))l-=i;
| ^
squarerect.cpp:49:12: error: ‘r’ was not declared in this scope
49 | while(r+i<=n and inside_shape(r+i,y))r+=i;
| ^
squarerect.cp