online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <iomanip> #include "SquareCube.h" int main() { float input; std::cout << "Enter A Value : "; std::cin >> input; float input_cubed; float input_squared = SquareCube(input, input_cubed); std::cout << std::fixed << std::setprecision(2); std::cout << "Input Squared : " << std::setw(6) << input_squared << std::endl; std::cout << "Input Cubed : " << std::setw(6) << input_cubed << std::endl; return 0; }
float SquareCube(float, float &);
#include <cmath> float SquareCube(float x, float & cube) { float square = std::pow(x, 2.0); cube = std::pow(x, 3.0); return square; }

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