I was sent a technical test by a potential employer that was impossible to complete. The test contained invalid code under a "Do not change this code" comment. In addition, the web page had glaring issues and refused my answers for one of the other questions.
I have scoured the documentation of the C language and I am certain, beyond any doubt in my mind or that of any peers I have consulted, that the test sent to me was invalid and impossible.
I sent these concerns and after being ignored, I followed up and was met with "Other candidates passed the test successfully; you were the only one that had issues". They have excluded me from moving forward as a result.
I don't know what to do here. It is driving me crazy, because I am so fundamentally certain that it is impossible, but "somehow" other candidates did the test. My request to see a solution that worked and followed the outline of the test was not acknowledged. I just want some closure, and I don't care about the job anymore.
I'm mainly looking for a way to understand how another candidate completed this, when it is in fact impossible (I'm happy to cite documentation to prove that fact). I have been losing sleep over this, because I simply cannot wrap my mind around it.
I feel like I need closure, but the employer is not explaining this test result to me.
What are good ways to learn from this and move on?
For those interested, the code was (in C):
void functionToWrite(int[] a){
//your code here
}
int main(){
//DO NOT CHANGE THIS CODE
int a[];
a = gets(stdin);
functionToWrite(a);
}
gets
function in a very peculiar way, which is invalid in C and C++, so this is expected. See What is going on with 'gets(stdin)' on the site coderbyte? for details.