zsh: killed when running C++ [closed]

  apple-m1, c++, kill, visual-studio-code, zsh

I am pretty new to programming so please understand my lack of experience.
OS: Big Sur 11.2.3
Machine: M1 Macbook

When I try running my C++ code on vscode, it does not run and says:
zsh: killed

I run my c++ code using the terminal on vscode. This is the first time this happened. Does anyone know any solutions?

terminal in vs cpde

Source: Windows Questions C++