rainbow.cpp: In function 'void init(int, int, int, int, int, char*)':
rainbow.cpp:11:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i = 0; i < sN; i++)
^~~
rainbow.cpp:14:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
grid[curx][cury] = 'X';
^~~~
rainbow.cpp:8:9: warning: variable 'n' set but not used [-Wunused-but-set-variable]
int n, m, curx, cury, sz, i, j;
^
rainbow.cpp:8:12: warning: variable 'm' set but not used [-Wunused-but-set-variable]
int n, m, curx, cury, sz, i, j;
^
/tmp/cc5yh3qq.o: In function `main':
grader.cpp:(.text.startup+0xcc): undefined reference to `init(int, int, int, int, int, char*)'
grader.cpp:(.text.startup+0x131): undefined reference to `colour(int, int, int, int)'
collect2: error: ld returned 1 exit status