Test cases are getting failed

Please help me out with this. Test cases are getting failed. Please refer this https://ide.codingblocks.com/s/362242

a,b,c can each be upto 100000. So statement 8 will definitely lead to overflow as long long int can only store numbers upto 10^18.

Please refer to this link.