regarding augus tchallenge and its compilation

i have attempted the mgcd question in august challenge.and when i tried to submit the answer ,i have been getting it as incorrect.when i tried to verify it on other compilers the answers matched with the example cases .now i dont know why i have getting is as wrong answer.can u explain me?i would also like to mention that i am a beginner