Hcf problem- hackerblocks

https://ide.codingblocks.com/s/55753

it is producing wrong answer in 3 test cases. how to rectify ?

Line no 9
you are writing
return (b%a,a);
you should write
return gcd(b%a,a);
HIt like if u get it:)