Help me in solving CHFRICH problem

My issue

My code

int main (){
    int x(3);
    scanf("%d x");
    int x=100,y=200,z=10;
    scanf("%d%d%d x,y,z");

Problem Link: CodeChef: Practical coding for everyone

your code doesn’t make any sense bro.
The question demands what amount of year chef need to reach upto B million Dollars as its net worth. so all he need to make B-A more money .