following is the codeideone.com/U6cDOx
ACPC10 is not a valid problem code. Please post your code inline using code tags.
its ACPC10A
You clearly have not tested very much. You have a very large error.
Also if(a,b,c==0) does not work how you think it does.