FGFS - Bon Appetit (Runtime error)

Somebody please help me solve this problem. I’m getting runtime error i think because of overflow but I don’t know how to solve it. I am a beginner. Here is the code.

//