Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
fp inv print
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
#include <iostream> #include <stack> using namespace std; void f1() {cout<<"Line 1"<<endl;} void f2() {cout<<"Line 2"<<endl;} void f3() {cout<<"Line 3"<<endl;} void f4() {cout<<"Line 4"<<endl;} int main() { stack<void(*)()> instructions; instructions.push(f1); instructions.push(f2); instructions.push(f3); instructions.push(f4); while(!instructions.empty()) { instructions.top()(); instructions.pop(); } }
g++
Show compiler warnings
[
+
] Compiler args
[
+
]
Show input
Compilation time: 0.42 sec, absolute running time: 0.14 sec, cpu time: 0 sec, memory peak: 3 Mb, absolute service time: 0,56 sec
edit mode
|
history
Line 4 Line 3 Line 2 Line 1