For this Question: Gian and Suneo want their heights to be equal so they asked Doraemon's help. Doraemon gave a big light to both of them but the both big lights have different speed of magnifying. Let's assume the big light given to Gian can increase height of a person by v1 m/s and that of Suneo's big light is v2 m/s.
At the end of each second Doraemon check if their heights are equal or not.
Given initial height of Gian and Suneo, your task is to check whether the height of Gian and Suneo will become equal at some point or not, assuming they both started at the same time.First line takes the input of integer h1(height of gian), h2(height of suneo), v1(speed of Gian's big light) and v2(speed of Suneo's big light) as parameter.

<b>Constraints:-</b>
1 <b>&le;</b> h2 < h1<b>&le;</b> 10<sup>4</sup>
1 <b>&le;</b> v1 <b>&le;</b> 10<sup>4</sup>
1 <b>&le;</b> v2 <b>&le;</b> 10<sup>4</sup>complete the function EqualOrNot and return a boolean True if their height will become equal at some point (as seen by Doraemon) else print False
Sample input:-
4 2 2 4

Sample output:-
Yes

Explanation:-
height of Gian goes as- 4 6 8 10. .
height of Suneo goes as:- 2 6 10..
at the end of 1 second their height will become equal.

Sample Input:-
5 4 1 6

Sample Output:
No, I have written this Solution Code: 


#include <bits/stdc++.h>
using namespace std;

bool EqualOrNot(int h1, int h2, int v1,int v2){
   if (v2>v1&&(h1-h2)%(v2-v1)==0){
return true;
}
return false;
}

int main(){
int n1,n2,v1,v2;
cin>>n1>>n2>>v1>>v2;
if(EqualOrNot(n1,n2,v1,v2)){
cout<<"Yes";}
else{
cout<<"No";
}
}

, In this Programming Language: C++, Now tell me if this Code is compilable or not?