Code C in VS Code Error(ld: symbol(s) not found for architecture arm64)

my environment: Version: 1.61.2 MacOS: 12.0.1 (21A559)

i want to code c program in VS Code,so i installed C/C++ and Code Runner extension in VS Code. and written following code:

int main()
{
    printf("Hello from VS Code\n");
    return 0;
}

and then i click the Run Code Button,the output prints the error as image show:

and then i go to terminal in VS Code to find more detail info as shown in next image:

i want known what i should do to fix it?

The wrong forum, please the Microsoft support forums for Visual Studio Code.

Code C in VS Code Error(ld: symbol(s) not found for architecture arm64)
 
 
Q