online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include<cmath> //Librería que contiene la definición de funciones matemáticas en C++ using namespace std; namespace miEspacio { double sqrt(int a) { return pow(a,3); } double max(int a, int b) { return min(a,b); } } //using namespace miEspacio; int main() { int x = 4; int y = 7; cout << "La raiz cuadrada de 4 es: "<<sqrt(x) << endl; // imprime 64 cout << "El maximo de 4 y 7 es: "<<max(x,y) << endl; // imprime 4 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