Problem squarerect
User Josh28acc2
Submission Time 2023-12-26 14:52:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

squarerect.cpp: In function ‘bool am_i_square(int, int)’:
squarerect.cpp:5:17: error: declaration does not declare anything [-fpermissive]
5 | #define ll long long;
| ^~~~
squarerect.cpp:8:2: note: in expansion of macro ‘ll’
8 | ll counter = 0;
| ^~
squarerect.cpp:8:5: error: ‘counter’ was not declared in this scope
8 | ll counter = 0;
| ^~~~~~~
squarerect.cpp:5:17: error: declaration does not declare anything [-fpermissive]
5 | #define ll long long;
| ^~~~
squarerect.cpp:9:7: note: in expansion of macro ‘ll’
9 | for (ll q = 1; q <= N; q++) {
| ^~
squarerect.cpp:9:10: error: ‘q’ was not declared in this scope
9 | for (ll q = 1; q <= N; q++) {
| ^
squarerect.cpp:9:23: error: expected ‘)’ before ‘;’ token
9 | for (ll q = 1; q <= N; q++) {
| ~ ^
|