online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <vector> #include <algorithm> int main() { std::vector<std::vector<int>> a(2, std::vector<int>(3)); std::for_each(a.begin(), a.end(), [](auto &v) {std::fill(v.begin(), v.end(), 7);}); for (auto v: a) { for (auto el: v) { std::cout << el << ", "; } std::cout << "\n"; } }

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