Wydaje mi się że wszystko jest dobrze, przykłady robi poprawnie. Nie mogę dojść co zrobiłem źle.
#include<iostream>
using namespace std;
int main()
{
int a,b;
string c;
while(cin>>a)
{
cin>>c>>b;
if(c=="==")
{
if(a==b)cout<<1<<endl;
else cout<<0<<endl;
}
if(c=="<=")
{
if(a<=b)cout<<1<<endl;
else cout<<0<<endl;
}
if(c==">=")
{
if(a>=b)cout<<1<<endl;
else cout<<0<<endl;
}
}
}
zadanie to https://pl.spoj.com/problems/KC015/