Jump to content

C++ Program False Positive


TimT

Recommended Posts

Was coding a few programs for Project Euler, and strangely enough they got picked up as viruses.

 

They showed up as "Rogue.agent" in the results log.

 

Here's the Source Code of one: (Language is C++)

//This program calculates the sum of all multiples of 3 and 5 below 1000#include <iostream>using namespace std;int main() {    int sum = 0;    for(int num=1; num<1000; num++) {        if (num % 3 == 0 || num % 5 == 0) {            sum = sum + num;        }    }    cout << "The sum is: " << sum << endl;}

And I've attached the executable of it. Apparently, you aren't allowed to attach executable files, so I've uploaded it here:

 

https://www.mediafire.com/?14jptuls28s4odd

 

The compiler I used was CodeBlocks v12.11, not sure if that would have anything to do with it.

 

Anyway, thanks!

 

-Tim

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
Back to top
×
×
  • Create New...

Important Information

This site uses cookies - We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.