online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include<iostream> using namespace std; int main() { int t,n,i,a,b,c,d,e,f,g,h,j,k; cin>>t; for(i=0;i<t;i++) { int s=0; cin>>n; a=n/100; b=n%100; c=b/50; d=b%50; e=d/10; f=d%10; g=f/5; h=f%5; j=h/2; k=h%2; s=a+c+e+g+j+k ; cout<<s; } 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