Online Ide test for GNU c++ 14 and GNU c++17
Input tested: 6 6
Expected output: "="
Actual output: ">"
But in codeBlocks(gcc) I am getting correct ,I know its compiler issue how can I correct it PLease help
#include<bits/stdc++.h>
using namespace std;
int32_t main(){
int x,y;
cin>>x>>y;
double lhs = 1.0*y*log(x);
double rhs = 1.0*x*log(y);
// cout<<" lhs "<<lhs<<endl;
//cout<<" rhs "<<rhs<<endl;
if(rhs>lhs){
cout<<"<";
}
else if(lhs==rhs){
cout<<"=";
}
else{
cout<<">";
}
}