online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <numeric> #include <vector> #include <iostream> using namespace std; int main() { vector<int> v { 2, 3, 5, 1, 4 }; partial_sum(v.rbegin(), v.rend(), v.rbegin(), max<int>); for (int i : v) { cout << 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