FATCHEF problem in gcc

test case loop doesn’t seem to work for gcc -O2 -fomit-frame-pointer

it only run once

but without “-O2 -fomit-frame-pointer” it works correctly

i think thay’s why mt code show wrong ans “WHAT TO DO ?? :(”

use getchar() to take the new line input and then take the A-Z for the paint colour.