LWS logo
Service temporarily under maintenance, in read-only mode. Please come back later.
C++
4.8.1 (g++)
4.8.0 (g++)
4.7.3 (g++)
4.7.2 (g++)
4.6.4 (g++)
4.6.3 (g++)
3.2 (clang++)
13.0.1 (Intel)
C
4.8.1 (gcc)
4.8.0 (gcc)
4.7.3 (gcc)
4.7.2 (gcc)
4.6.4 (gcc)
4.6.3 (gcc)
3.2 (clang)
13.0.1 (Intel)
Python
3.3.0
2.7.3
1.9.0 (PyPy)
Ruby
2.0.0
1.9.3
JS
V8 (3.15.11)
SpiderMonkey (1.8.5)
PHP
5.4.6
Lua
5.2.1
2.0.0 (LuaJit)
Perl
Perl6 (2013.02.1)
5.14.2
C#
2.10 (mono)
F#
3.0 (mono)
Nemerle
1.1.1018.0 (mono)
Go
4.8.1 (GCCGo)
4.8.0 (GCCGo)
4.7.2 (GCCGo)
1.0.3 (GoogleGo)
Rust
0.6
0.5
D
v2 (gdc-4.6.3)
v2 (dmd-2.060)
Fortran
4.8.1 (GFortran)
4.8.0 (GFortran)
4.7.2 (GFortran)
Haskell
7.4.2
Lisp
2.49 (clisp)
1.1.12 (sbcl)
Code Snippets
Standard
iostream & main() without args & using namespace std
for-loop
calc (2.7)
calc (3.x)
Hello world
factorial
Hello world
echo
factorial
Hello world
Hello world
factorial
factorial
foreach
factorial
Hello world
factorial
Hello world
iostream & main() with args & using namespace std
iostream & main() with args
iostream & main() without args
stdio + stdlib & main() without args
stdio + stdlib & main() with args
try - catch
for-loop
ctor-dtor tracer
time measure
TypeName demangler
Fibonacci
Hello world
Hello world
factorial
Hello world
Hello world
ctor-dtor tracer with R-value ctor using boost.move
Hello world
factorial
perl-6 factorial
line: 0, col: 0 lines: 0 0 symbols
changes: 2
stdin data
Output
Compilation finished with errors:
source.cpp:19:30: warning: unused parameter 'n' [-Wunused-parameter]
source.cpp:149:5: warning: unused parameter 'argc' [-Wunused-parameter]
source.cpp:149:5: warning: unused parameter 'argv' [-Wunused-parameter]
source.cpp: In instantiation of 'struct named_parameter::null_list_type<false>':
source.cpp:108:67: required by substitution of 'template<long long unsigned int id, class ... Args> constexpr typename named_parameter::list<Args ...>::value_type<id> get(const named_parameter::list<Args ...>&) [with long long unsigned int id = 9036332894136256754ull; Args = {named_parameter::pair<4624382957487889774ull, const char (&)[10]>, named_parameter::pair<5411718394350379800ull, long long unsigned int>, named_parameter::pair<4767205828091196211ull, const char (&)[5]>}]'
source.cpp:145:25: required from 'void bar(T) [with T = named_parameter::list<named_parameter::pair<4624382957487889774ull, const char (&)[10]>, named_parameter::pair<5411718394350379800ull, long long unsigned int>, named_parameter::pair<4767205828091196211ull, const char (&)[5]> >]'
source.cpp:153:84: required from here
source.cpp:63:28: error: static assertion failed: Error, no matched type has been found.
source.cpp: In substitution of 'template<long long unsigned int id, class ... Args> constexpr typename named_parameter::list<Args ...>::value_type<id> get(const named_parameter::list<Args ...>&) [with long long unsigned int id = 9036332894136256754ull; Args = {named_parameter::pair<4624382957487889774ull, const char (&)[10]>, named_parameter::pair<5411718394350379800ull, long long unsigned int>, named_parameter::pair<4767205828091196211ull, const char (&)[5]>}]':
source.cpp:145:25: required from 'void bar(T) [with T = named_parameter::list<named_parameter::pair<4624382957487889774ull, const char (&)[10]>, named_parameter::pair<5411718394350379800ull, long long unsigned int>, named_parameter::pair<4767205828091196211ull, const char (&)[5]> >]'
source.cpp:153:84: required from here
source.cpp:108:67: error: no type named 'current_pair_type' in 'named_parameter::list<named_parameter::pair<4624382957487889774ull, const char (&)[10]>, named_parameter::pair<5411718394350379800ull, long long unsigned int>, named_parameter::pair<4767205828091196211ull, const char (&)[5]> >::list_type<9036332894136256754ull> {aka struct named_parameter::null_list_type<false>}'
source.cpp: In instantiation of 'void bar(T) [with T = named_parameter::list<named_parameter::pair<4624382957487889774ull, const char (&)[10]>, named_parameter::pair<5411718394350379800ull, long long unsigned int>, named_parameter::pair<4767205828091196211ull, const char (&)[5]> >]':
source.cpp:153:84: required from here
source.cpp:145:25: error: no matching function for call to 'get(named_parameter::list<named_parameter::pair<4624382957487889774ull, const char (&)[10]>, named_parameter::pair<5411718394350379800ull, long long unsigned int>, named_parameter::pair<4767205828091196211ull, const char (&)[5]> >&)'
source.cpp:145:25: note: candidate is:
source.cpp:130:76: note: template<long long unsigned int id, class ... Args> constexpr typename named_parameter::list<Args ...>::value_type<id> get(const named_parameter::list<Args ...>&)
source.cpp:130:76: note: substitution of deduced template arguments resulted in errors seen above