Need 10 seconds to execute "Hello World"

100 Views Asked by At

Lately, I've been trying to configure my C and C++ in VSCode. After installation, I ran my code and it needs 10 seconds on both VSCode and Sublime Text to run a "Hello World" program. Both IDE work well in python files.

The code:

#include <stdio.h>

int main(){
    printf("Hello World");
    return 0;
}

Sublime text output:

Hello World[Finished in 10.9s]

I tried to change from MSYS2 to MINGW. I deleted the MSYS2 files and replaced them with MINGW but nothing happened.

0

There are 0 best solutions below