wall.cpp: In function 'void buildWall(int, int, int*, int*, int*, int*, int*)':
wall.cpp:37:26: error: expected ';' before ']' token
for (int i = L[j]]; i <= R[j]; i++)
^
wall.cpp:37:26: error: expected primary-expression before ']' token
wall.cpp:37:26: error: expected ';' before ']' token
wall.cpp:37:26: error: expected primary-expression before ']' token
wall.cpp:37:26: error: expected ')' before ']' token
wall.cpp:37:26: error: expected primary-expression before ']' token
wall.cpp:37:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (int i = L[j]]; i <= R[j]; i++)
^~~
wall.cpp:37:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for (int i = L[j]]; i <= R[j]; i++)
^
wall.cpp:37:18: warning: unused variable 'i' [-Wunused-variable]
for (int i = L[j]]; i <= R[j]; i++)
^
wall.cpp:37:29: error: 'i' was not declared in this scope
for (int i = L[j]]; i <= R[j]; i++)
^
wall.cpp:43:13: error: 'else' without a previous 'if'
else
^~~~