online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; int divisores(int n) { int i, acu; acu = 0; for(i = 1; i <= n; i++) if (n % i == 0) acu += i; return acu; } int main() { int n; cout << " Ingrese un numero = "; cin >> n; cout << " Suma de divisores de " << n << " es " << divisores(n) << endl; return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue