error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(s[i] != "b"){

C++
if (response == 'Y')
Source

Also in C++: