Getting Runtime error in 4 test case in BIGGCD problem?

https://ide.codingblocks.com/#/s/19797