Code not able to run on online judge

My code is working well in local IDE but not able to summit to online judge.
#include
using namespace std;
int main() {
char ch;
int N1,N2;
cin>>ch;
while( ch!=‘X’ && ch!=‘x’)
{
cin>>N1>>N2;
switch(ch)
{
case ‘+’:
{
cout<< N1+N2<<endl;
break;
}
case ‘-’:
{
cout<<N1-N2<<endl;
break;
}
case '’:
{
cout<<N1
N2<<endl;
break;
}
case ‘/’:
{
cout<<N1/N2<<endl;
break;
}
case ‘X’:case ‘x’:{
break;
}
case ‘%’:
{
cout<<N1%N2<<endl;
break;
}
default:
{
cout<<“Invalid operation. Try again.”<<endl;
}
}
cin>>ch;
}
return 0;
}

@mandeepchohan96 Please save your code on ide.codingblocks.com and share its link.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.