online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <vector> template <typename T> std::ostream& operator<<(std::ostream& os, const std::vector<T>& v) { os << "["; for (int i = 0; i < v.size(); ++i) { os << v[i]; if (i != v.size() - 1) os << ", "; } os << "]"; return os; } class Xhii { public: template <typename T> static void Run(T param) { std::cout << param << '\n'; } }; int main() { Xhii::Run(1); Xhii::Run(std::vector<int> {1,2,3}); Xhii::Run("Hi"); 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