Dementia BEACIRC

Can someone pls tell what is wrong in this code?

Hi friend
I have also just joined codechef
Can you plzz tell me where did you learnt to write such a high level code plzzz because iam such a noob that I am hardly getting anything .
Plzz help me to learn

I haven’t just started coding, I have an old account on Codeforces also.

I started initially mostly from YouTube. search for the same question on CodeChef discuss. you will get many links of YouTube channels and blogs to start from.