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, v[100], k, pos=0; cin>>n; for(i=1; i<=n; i++) cin>>v[i]; cout<<"ce valoare caut? "; cin>>k; cout<<k<<endl; i=1; while(i<=n && pos==0){ if(v[i]==k){ pos=i; } i++; } cout<<endl; if(pos!=0) cout<<"am gasit valoarea "<<k<<" pe pozitia "<<pos<<endl; else cout<<"valoarea "<<k<<" nu se gaseste in vector"<<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