Using cmd commands - g++ hello.cpp -o hello.exe - hello compiles hello.cpp and runs the hello.exe program.
Normally, it used to just print 'helloworld' in the cmd window, which takes no time.
However, yesterday it started to behave differently in that after compilation, when the program is first run, another window pops out very briefly (showing 'helloworld', I can see it clearly even though the window vanishes very soon) before 'helloworld' is printed in cmd window (which is seconds later, very slow and annoying!) The extra window does not pop out for subsequent execution. It only pops out and causes delays during the first run.
//----------------------------------------------------------------
I have completely no idea how to make it behave like it used to, and here are my guesses of what caused it:
I watched porn in goolge chrome incognito window but in developer mode (had to add sci-hub extension in developer mode) and perhaps I got some virus that affected the path somehow. What's more for this guess: my google chrome is starting to crash more frequently than prior to watching porn in developer mode.
Compiler auto-update? But I haven't manually updated the compiler recently. It didn't ask for update too.
Windows update?
Anyone has any idea pls? This is very annoying bcos as quite a beginner in c++ I frequently run tests and have to go through the time delays that I have never experienced (except for programs that need longer time to execute like inefficiently-coded sudoku solver). Of course I can do it with online c++ compiler but I find notepad++ more pleasing than any other mediums.