online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; float prod(float *A, int n) { if (n==0) return 1; return A[0]*prod(A+1,n-1); } int main() { int i,n; cout << "введите исходное количество компонентов вектора:"; cin >> n; float *a=new float[n]; for (i=0; i<n; i++) { cout << "a[" << i + 1 << "] = "; cin >> a[i]; } cout << "Произведение компонентов вектора =" << prod(a,n) << endl; delete [] a; 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