Problem squarerect
User justin271828
Submission Time 2025-03-05 09:52:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

squarerect.cpp: In function ‘bool am_i_square(int, int)’:
squarerect.cpp:70:3: error: ‘else’ without a previous ‘if’
70 | else break;}
| ^~~~
squarerect.cpp:81:147: error: expected ‘}’ at end of input
81 | return (right-left+up <= 100 && inside_shape(temp.first, right-left+up) && (right-left+up >= 100 || !inside_shape(temp.first, right-left+up+1)));}
| ^
squarerect.cpp:5:32: note: to match this ‘{’
5 | bool am_i_square(int N, int Q) {
| ^