rainbow.cpp: In function 'void init(long long int, long long int, long long int, long long int, long long int, long long int, std::__cxx11::string)':
rainbow.cpp:11:9: error: 'i' was not declared in this scope
for(i = 0; i <= n; i++)
^
rainbow.cpp:12:13: error: 'j' was not declared in this scope
for(j = 0; j <= m; j++)
^
rainbow.cpp:14:9: error: 'i' was not declared in this scope
for(i = 0; i < sz; i++) {
^
rainbow.cpp:21:17: error: 'x0' was not declared in this scope
colours(x0, y0, x1, y1);
^~
rainbow.cpp:21:17: note: suggested alternative: 'y0'
colours(x0, y0, x1, y1);
^~
y0
rainbow.cpp:21:25: error: 'x1' was not declared in this scope
colours(x0, y0, x1, y1);
^~
rainbow.cpp:21:25: note: suggested alternative: 'y1'
colours(x0, y0, x1, y1);
^~
y1
rainbow.cpp:21:9: error: 'colours' was not declared in this scope
colours(x0, y0, x1, y1);
^~~~~~~
rainbow.cpp:23:19: error: ISO C++ forbids using pointer to a function in subtraction [-fpermissive]
ll M = y1 - y0 + 1;
~~~^~~~
rainbow.cpp:25:13: error: 'i' was not declared in this scope
for(i = x0; i <= x1; i++)
^
rainbow.cpp:26:17: error: 'j' was not declared in this scope
for(j = y0; j <= y1; j++)
^
rainbow.cpp:29:13: error: 'i' was not declared in this scope
for(i = 1; i <= N; i++) {
^
rainbow.cpp:30:17: error: 'j' was not declared in this scope
for(j = 1; j <= M; j++) {
^