rainbow.cpp:2:5: error: 'x0' does not name a type
x0 = ar; y0 = ac;
^~
rainbow.cpp:2:14: error: 'y0' does not name a type
x0 = ar; y0 = ac;
^~
rainbow.cpp:3:5: error: 'x1' does not name a type
x1 = br; y1 = bc;
^~
rainbow.cpp:3:14: error: 'y1' does not name a type
x1 = br; y1 = bc;
^~
rainbow.cpp:7:15: error: 'sN' was not declared in this scope
char temp[sN][sN];
^~
rainbow.cpp:7:15: note: suggested alternative: 'N'
char temp[sN][sN];
^~
N
rainbow.cpp:7:19: error: 'sN' was not declared in this scope
char temp[sN][sN];
^~
rainbow.cpp:7:19: note: suggested alternative: 'N'
char temp[sN][sN];
^~
N
rainbow.cpp:8:5: error: expected unqualified-id before 'for'
for(i = x0; i <= x1; i++)
^~~
rainbow.cpp:8:17: error: 'i' does not name a type
for(i = x0; i <= x1; i++)
^
rainbow.cpp:8:26: error: 'i' does not name a type
for(i = x0; i <= x1; i++)
^
rainbow.cpp:9:21: error: 'j' does not name a type
for(j = y0; j <= y1; j++)
^
rainbow.cpp:9:30: error: 'j' does not name a type
for(j = y0; j <= y1; j++)
^
rainbow.cpp:12:5: error: expected unqualified-id before 'for'
for(i = 1; i <= N; i++) {
^~~
rainbow.cpp:12:16: error: 'i' does not name a type
for(i = 1; i <= N; i++) {
^
rainbow.cpp:12:24: error: 'i' does not name a type
for(i = 1; i <= N; i++) {
^
rainbow.cpp:32:5: error: expected unqualified-id before 'return'
return cnt;
^~~~~~