If I say one part of the program doesn't work, that means it has been already compiled ..
And if I say "the code doesn't compile" that means it doesn't upload, which means it doesn't run, therefore it cannot be said to work or not work.
Even if it did compile, you haven't said by what criteria you deem it to not work.
Obviously the program that I published "badly" seems "bad" because I'm a beginner, I'm a new in this Forum .. I try to learn
So read the clearly-posted guidelines.