Main.cc: In function ‘int main()’: Main.cc:9:12: warning: comparison with string literal results in unspecified behavior [-Waddress] if(a[i]=="G") b++; ^~~ Main.cc:9:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] Main.cc:10:12: warning: comparison with string literal results in unspecified behavior [-Waddress] if(a[i]=="S") c++; ^~~ Main.cc:10:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] Main.cc:11:12: warning: comparison with string literal results in unspecified behavior [-Waddress] if(a[i]=="B") d++; ^~~ Main.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]