@subham_cc99 provided one solution, sometimes Ctrl + C works.
You can’t get everything on one plate, you got to sacrifice something.
I use VS Code for basically everything including development.
For this simple code, it has taken 31.11 seconds for compilation
.
Compilation time in my Dev C++ has jumped 10x , earlier it used to take 2-3 seconds, now it is taking more than 30 seconds. What might be the reason? Thanks
I am not using “# include < bits/ stdc++. h >”
Edit: It did not work for thunderboltz. Therefore suggestion hidden because it might not be the smartest thing to do
Original Post
Could you try This suggestion from Stackoverflow?
It suggests that the antivirus (rightfully) picks up that something gets compiled. To make sure that it is not compiling a virus it temporarily stops the compilation to check out what is compiled. After it is sure it is safe it let’s the compilation continue.
Of course when programming we compile only programs we know are safe. Therefore it might increase compilation time by excluding compilers from the antivirus check. I think it might be worth a try. But if it doesn’t work then make sure to remove the compilers again from the exclude list.
vim is luv…
I don’t use Online IDE and don’t suggest anyone because of many reasons. I’m mentioning a few of them below :
- They are internet dependent. So if your internet connection is not strong, it will take more time to load. Don’t mention the cases when whole code is lost because of poor connection.
- Traffic during online contests.
- Dependent on GUIs. We get so acustomed of easy compilation and executon that we never go behind the actual working of the compilers and everything. I myself have faced the same thing and I used to run around seeking help for even basics.
- Plag, ofcourse.
Therefore I suggest any text editor and a compiler to run codes offline (preferably on a linux distro).
But it totally depends on a person, what they want to use.
I use VSCode on Linux Mint and sometimes I switch to CPEditor, just for a change.
I tried this, but it didn’t work. Thanks
if you are using antivirus, it may be because the Real Time Protection is turned ON. The is same is true for windows defender.
Thanks for trying. Have you reverted your exclude settings? I have updated my previous comment.
Yes, I reverted. My windows defender is disabled so Win Def must not be the problem.
Dude i am facing similar issues. I had to reset my laptop due to some issues. Now on setting up mingw + sublime text for cpp, it takes forever to compile.
Do share if you find anything.
I also tried this. Didnt work. Thanks
You can use the following online compiler
I’m doing same : mingw + sublime text
I’ve tried Sublime, Eclipse, Gedit + terminal, and Vim + Terminal, and vim + terminal is by far the best experience I’ve had. I’m currently using Vim + Terminal.
Vim also has a feature to run gdb inside vim, which is perfect for debugging.
Geany+Guake works good enough.
Btw, how to use precompiled bits/stdc++.h? Does it really reduce compilation time?
But you were facing that problem in DevC right? So you shifting to sublime +minGW now?
Or you used both earlier? If both, was the compilation time high in sublime too? only in devC?
Yes, I shifted to sublime+minGW yesterday, but I am facing same problem …taking 20+ seconds for compiling…may be my machine is getting slow
(unexpectedly!, still not sure) . So I’m using online compiler as of now.
I really like its Cobalt theme but there is no auto complete feature.
I use both vscode and codeblocks. I find vscode prety sick
. But I have to forcefully use codeblocks as only that will be available in ZCO… 
