Am i doomed - computer programming exam 02002

Sooo, the exam was this wednesday, i couldnt figure out for the life of me two simple problems, and i basically just went in under the test, looked for what the input that was used as a test, and just made a simple if == (input) return (output) to return the expected output, the test of course said the code worked, because it did.. for those numbers, however tests that they run on the code after will of course doom the code to fail it. Which i made peace with, i however did not think about the possibility of it being seen as cheating and potentially getting in trouble with DTU which i am not at all happy about and frankly, dreading.

My question is, will this eventually become a serious issue, or will this simply mean that i do not get points for those problems?