online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; int main() { int n, n1, n2, i, j, k, v[100], v1[100], v2[100]; 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; j=0; k=0; for(i=1; i<=n; i++) if(v[i]%2!=0) { j++; v1[j]=v[i]; } else { k++; v2[k]=v[i]; } n1=j; n2=k; cout<<"vectorul v1 : "; for(j=1; j<=n1; j++) cout<<v1[j]<<" "; cout<<endl; cout<<"vectorul v2 : "; for(k=1; k<=n2; 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