I am using Visual C++ and when I compile the following code there are no errors or warnings. However, when I compile with g++ I get 3 errors and 1 warning.
Here is the part of the code that generated the errors.
----------------------------------------------------------------------------------------------------------------
[CODE=cpp]int divsum(int x, vector<int> y) //returns the sum of the PROPER divisors
...