rainbow.cpp: In function 'void init(int, int, int, int, int, char*)':
rainbow.cpp:24:20: error: request for member 'count' in 'was[j]', which is of non-class type 'int'
24 | if((was[j].count()==0 and was[j-1].count()==0) or (was[j]|was[j-1]).count()>0){
| ^~~~~
rainbow.cpp:24:44: error: request for member 'count' in 'was[(j - 1)]', which is of non-class type 'int'
24 | if((was[j].count()==0 and was[j-1].count()==0) or (was[j]|was[j-1]).count()>0){
| ^~~~~
rainbow.cpp:24:77: error: request for member 'count' in '(was[j] | was[(j - 1)])', which is of non-class type 'int'
24 | if((was[j].count()==0 and was[j-1].count()==0) or (was[j]|was[j-1]).count()>0){
| ^~~~~