online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include<bits/stdc++.h> using namespace std; int main() { int t;cin>>t; while(t--) { int n,f=0; cin>>n; int *a=new int [n]; int *b=new int [n]; for(int i=0;i<n;i++) { cin>>a[i]>>b[i]; } int i=0,j=1; while(j<n) { if (b[i]<a[j]) { f++;i=j;j++; } else { j++; } } cout<<f+1; } 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