Provided the solution for compiling the code