online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> using namespace std; main(){ int a; cout<<endl<<"TOSERBA 'Cak John'"<<endl; cout<<"Jumlah Order : ";cin>>a; struct produk{ int id; string nama; int jml; int harga; }; struct order{ int idorder; string pelanggan; struct produk prod; }; struct order orders[a]; cout<<"[Input Order]"<<endl; for(int i=0;i<a;i++){ cout<<"ID Order : ";cin>>orders[i].idorder; cout<<"Nama Pelanggan : ";cin>>orders[i].pelanggan; cout<<"ID Produk :";cin>>orders[i].prod.id; cout<<"Nama Produk : ";cin>>orders[i].prod.nama; cout<<"Jumlah Produk : ";cin>>orders[i].prod.jml; cout<<"Harga Produk : ";cin>>orders[i].prod.harga; cout<<endl; } cout<<"[Output Order]"<<endl; for(int i=0;i<a;i++){ cout<<"ID Order : "<<orders[i].idorder<<endl; cout<<"Nama Pelanggan : "<<orders[i].pelanggan<<endl; cout<<"ID Produk :"<<orders[i].prod.id<<endl; cout<<"Nama Produk : "<<orders[i].prod.nama<<endl; cout<<"Jumlah Produk : "<<orders[i].prod.jml<<endl; cout<<"Harga Produk : "<<orders[i].prod.harga<<endl; cout<<endl; } }

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