online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; int main() { const int CAPACITY = 50; size_t size = 8; int a[CAPACITY] = {1, 7, 7, 3, 7, 9, 7, 7}; // Print cout << "a->[" << a[0]; for (size_t i = 1; i < size; ++i) cout << ", " << a[i]; cout << "]" << endl; // Delete all sevens and print again for (size_t i = 0; i < size; ++i) { if (a[i] == 7) { --size; for (size_t j = i; j < size; ++j) { a[j] = a[j + 1]; } } } // Print again cout << "a->[" << a[0]; for (size_t i = 1; i < size; ++i) cout << ", " << a[i]; cout << "]" << 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