ПВ
Size: a a a
ПВ
ПВ
A
G
clang: warning: unable to find a Visual Studio installation; try running Clang from a developer command prompt [-Wmsvc-not-found]ПВ
A
AB
G
AB
G
AB
AB
G
AB
AB
AB
AB
AB
AH
#define p(i,j) (i%2)^(j%2)
...
std::string sample {"WR"}; //это определяешь по первому найденному символу
...
//и в цикле:
if (test[i][j] == '.') test[i][j] = sample[p(i,j)];
else if (test[i][j] != sample[p(i,j)]) ...//матрица не собираетсяG