online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include<bits/stdc++.h> using namespace std; int main() { long long int n; cin>>n; long long int temp=n; int c=0; while(n>0) { n=n/10; c++; } n=temp; int a[c]; int g=0; while(n>0) { int r=n%10; if (r>=5) r=9-r; a[g++]=r; n/=10; } for(int i=g-1;i>=0;i--) { cout<<a[i]; } 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