The first time I compiled and ran my program in dev console when I opened it my pc started lagging and it created a bunch of .tmp files on my desktop with names like trzFE47.tmp
and my pc started lagging I had to turn off my pc I even checked the background processes with task manager for something suspicious but I found nothing so when I rebooted my pc I went to compile my .cpp program again avast gave me a warning saying suspicious item detected heres my code
#include <iostream>
#include <string>
#include <cstdlib>
#include <ctime>
#include <windows.h>
#include <stdio.h>
#include <tchar.h>
using namespace std;
int main() {
int l;
int a;
int b;
int c;
Sleep(3000);
srand(time(0));
l = 1+rand()%6;
a = 1+rand()%6;
b = 1+rand()%6;
c = 1+rand()%6;
cout << a << endl << b << endl << c << endl;
if (a==b&& b==c&&c==a){
int v;
cout << "you win";
cin >> v;
}else{
cout << "try again?";
string z;
cin >> z;
if (z == "yes"){
main();
}
}
return 0;
}