+ 8

Code is not working

In cpp when i try to run code acess denied is shown and my mcfee shows that it is a virus What should i do??

4th Nov 2021, 2:07 AM
Shasank Pandey
11 Respostas
+ 2
Shasank Pandey where are you running the c++ code from? Open your McAfee Click Real-Time Scanning: On. Click Excluded Files. Click Add file. Browse to, and select, the file or .exe you want to exclude from scans, in your situation the app that your running c++ code on, or the c++ file itself
4th Nov 2021, 4:17 AM
raynard
raynard - avatar
+ 2
Try to scan the files with another antivirus first, to get a second opinion. If other antivirus also detects threat in the files, then it is better to delete the files and do a whole system scan in attempt to reduce further infection. Some viruses do damage files beyond repairable state. The only option left in such case is to delete all the infected files and restore them from a clean backup.
4th Nov 2021, 3:03 AM
Ipang
+ 2
raynard thank you very much my code run successfully👍👍
4th Nov 2021, 4:34 AM
Shasank Pandey
+ 1
No way to answer your question cause you didn't share link to the code (assumed it's in your device but not in SoloLearn). Antivirus programs knows their thing, even though there exists false alarm possibility. I would delete that script just to be on the safe side. But if you get this warning for all your code, then *maybe* it's an issue with the antivirus program.
4th Nov 2021, 2:36 AM
Ipang
+ 1
So how can i remove that thing?
4th Nov 2021, 2:41 AM
Shasank Pandey
+ 1
I have faced the same issue and to my surprise , it was because of an infinite loop in my program which was running in the background . Whenever this happens , go to your task manager and terminate your running program from there .
4th Nov 2021, 3:53 AM
Hima
Hima - avatar
+ 1
Shasank Pandey yes,then exclude Vscode application from the mcafee scan using the steps i gave you
4th Nov 2021, 4:21 AM
raynard
raynard - avatar
+ 1
Shasank Pandey no problem bro
4th Nov 2021, 4:34 AM
raynard
raynard - avatar
0
If its ur own code that you wrote,It is most likely a false positive,just ignore it or if there is an option to put whatever ide you are running it from to the whitelist,do it. But if its from the internet,i suggest you scan the file in virus total,and read through the source code to check if theres any malicious activity
4th Nov 2021, 4:07 AM
raynard
raynard - avatar
0
My file of cpp when i click on run button then mcafee antivirus displayed in to quarantined item when i restore it and run again then again that bloody mcfee set up into quarantined item how can i run pls help me 😔
4th Nov 2021, 4:13 AM
Shasank Pandey
0
I run from vs code from my laptop
4th Nov 2021, 4:20 AM
Shasank Pandey