online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; int main() { int n, i, j, k, v[100], v1[50], v2[50]; cin>>n; cout<<"in vector sunt "<<n<<" de elemente:"<<endl; for(i=1; i<=n; i++) cin>>v[i]; for(i=1; i<=n; i++) cout<<v[i]<<" "; cout<<endl<<endl; for(j=1; j<=n/2; j++){ v1[j] = v[2*j-1]; } cout<<"vectorul v1 : "; for(j=1; j<=n/2; j++) cout<<v1[j]<<" "; cout<<endl; for(k=1; k<=n/2; k++) v2[k]=v[2*k]; cout<<"vectorul v2 : "; for(k=1; k<=n/2; k++) cout<<v2[k]<<" "; cout<<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