Help me out?

Why do I get this error in Visual studio but not when i try to run the code on an online C compiler, I even tried submitting my code through Matrix and it works completely fine. Can anyone help me out?
image.png
image.png
Was this page helpful?