#include
using namespace std;
int main()
{
char ch;
int x=0,y=0;
ch = cin.get();
while(ch!=’\n’)
{
if(ch=='E' or ch=='e')
{
x++;
}
else if(ch=='W' or ch=='w')
{
x--;
}
else if(ch=='N' or ch=='n')
{
y++;
}
else
{
y--;
}
ch = cin.get();
}
cout<<"final displacement is "<< x<<" and "<<y;
return 0;
}
why i am getting compilation error in online codingblock ide?