online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; int main() { float n, P, k, A[10]; int i; k=1.0; cout<<"Исходное количество компонентов вектора:"; cin>>n; for ( i=1.0; i<n+1.0; i++ ) { cout<<"Введите компоненты вектора:"; cin>>A[i]; P=k*A[i]; k=P; } cout<<"Произведение компонентов векторов ="<<k; 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