False alerts

Hello,

I study informatics and a couple of weeks ago I started to learn C++ programming in Dev C++, so I’m absolute beginner… And the problem is, that I can’t compile my programm because Avast blocks it telling it’s Win32:Evo-gen [Susp] or Win32:Malware-gen, and moving it to virus chest automatically. But, of course, there is nothing like that in my code… xD Adding to exeptions doesn’t help, because when I make some changes and upgrades, I have to compile again, and there is Avast blocking it again…

I have Windows 7 Professional x64
And here’s one of my practise code… If any other info is needed to provide you, just ask… Hoping you guys will solve this :wink:
Thanks for understanding!


#include <iostream>
#include <cstdlib>

using namespace std;

int main()
{
	int i;																			//deklaracija brojača
	
	cout << "Prvi zadatak: ispisivanje brojeva do zadane vrijednosti." << endl;		//1. zadatak
	int n;												
	cout << "Unesite cijeli broj: ";
	cin >> n;
	for (i=1; i<=n; i++)
	{
		cout << i << endl;
	}
	cout << endl;
	
	cout << "Drugi zadatak: suma i aritmetička sredina upisanih brojeva." << endl;	//2. zadatak
	float a;											
	float suma = 0;
	for (i=1; i<=5; i++)
	{
		cout << "Unesite broj: ";
		cin >> a;
		suma += a;
	}
	float ars;
	ars = suma/5;
	cout << "Suma: " << suma << endl
		<< "Aritmeticka sredina: " << ars << endl << endl;
	
	cout << "Treci zadatak: komplement i pomicanje bitova." << endl;				//3. zadatak
	int b;												
	cout << "Unesite cijeli broj: ";
	cin >> b;
	b = ~b;
	cout << "Komplement u decimalnom obliku: " << b << endl << endl;
	
	cout << "Unesite cijeli broj: ";
	cin >> b;
	b = b << 5;
	cout << "Upisani broj s pomaknutim bitovima: " << b << endl << endl;
	
	cout << "Cetvrti zadatak: pogadjanje broja 3." << endl;							//4. zadatak
	int c;												
	for (i=1; i<=5; i++)
	{
		cout << "Upisite cijeli broj: ";
		cin >> c;
		if (c==3)
		{
			cout << "Pogodak!" << endl << endl;
			goto kraj;
		}		
	}
	cout << "Pogreska!" << endl << endl;
	
	kraj:
	cout << "Peti zadatak: ispis parnih brojeva do upisanog." << endl;				//5. zadatak
	short d;
	cout << "Unesite broj (10-20): ";
	cin >> d;
	for (i=1; i<=d; i++)
	{
		if (i%2==1) continue;
		cout << i << endl;
	}
	
	system ("pause");
	return 0;
}

You can report it using one of these options…you may add a link to this topic in case they reply here

You can upload files and report issues to avast here : http://www.avast.com/contact-form.php (select subject according to Your case)

You can use mail
send to virus@avast.com in a password protected zip file
mail subject: False Positive / undetected sample (select subject according to your case)
zip password: infected

or you can send files from avast chest
how to use the chest. http://www.avast.com/faq.php?article=AVKB21