Big -GCD (Wrong answer and run error)

my code:https://ide.codingblocks.com/#/s/21849
I am getting RE. What’s wrong in my code?