Please tell me I am getting compile error while submission and not while compilation

@amangupta can you explain your logic a bit?