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:8:14: error: 'int remainder' redeclared as different kind of symbol
In file included from /usr/include/math.h:71:0,
from /usr/include/c++/4.7/cmath:46,
from source.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:290:1: error: previous declaration of 'double remainder(double, double)'
source.cpp: In function 'int toHexadecimal(int)':
source.cpp:30:47: error: overloaded function with no contextual type information
source.cpp:30:74: error: overloaded function with no contextual type information
source.cpp:31:62: error: no match for 'operator<<' in 'std::operator<< <std::char_traits<char> >((* &(& std::operator<< <std::char_traits<char> >((* & std::cout), ((const char*)"Place value: ")))->std::basic_ostream<_CharT, _Traits>::operator<< <char, std::char_traits<char> >(placeValue)), ((const char*)" Remainder: ")) << std::remainder'
source.cpp:31:62: note: candidates are:
In file included from /usr/include/c++/4.7/iostream:40:0,
from source.cpp:2:
/usr/include/c++/4.7/ostream:106:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.7/ostream:106:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&) {aka std::basic_ostream<char>& (*)(std::basic_ostream<char>&)}'
/usr/include/c++/4.7/ostream:115:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type& (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>; std::basic_ostream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]
/usr/include/c++/4.7/ostream:115:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}'
/usr/include/c++/4.7/ostream:125:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.7/ostream:125:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)'
/usr/include/c++/4.7/ostream:164:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.7/ostream:164:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int'
/usr/include/c++/4.7/ostream:168:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.7/ostream:168:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int'
/usr/include/c++/4.7/ostream:172:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.7/ostream:172:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool'
In file included from /usr/include/c++/4.7/ostream:607:0,
from /usr/include/c++/4.7/iostream:40,
from source.cpp:2:
/usr/include/c++/4.7/bits/ostream.tcc:93:5: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]
/usr/include/c++/4.7/bits/ostream.tcc:93:5: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int'
In file included from /usr/include/c++/4.7/iostream:40:0,
from source.cpp:2:
/usr/include/c++/4.7/ostream:179:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.7/ostream:179:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int'
In file included from /usr/include/c++/4.7/ostream:607:0,
from /usr/include/c++/4.7/iostream:40,
from source.cpp:2:
/usr/include/c++/4.7/bits/ostream.tcc:107:5: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]
/usr/include/c++/4.7/bits/ostream.tcc:107:5: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int'
In file included from /usr/include/c++/4.7/iostream:40:0,
from source.cpp:2:
/usr/include/c++/4.7/ostream:190:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.7/ostream:190:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int'
/usr/include/c++/4.7/ostream:199:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.7/ostream:199:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int'
/usr/include/c++/4.7/ostream:203:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.7/ostream:203:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int'
/usr/include/c++/4.7/ostream:218:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.7/ostream:218:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double'
/usr/include/c++/4.7/ostream:222:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.7/ostream:222:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float'
/usr/include/c++/4.7/ostream:230:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.7/ostream:230:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double'
/usr/include/c++/4.7/ostream:243:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.7/ostream:243:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*'
In file included from /usr/include/c++/4.7/ostream:607:0,
from /usr/include/c++/4.7/iostream:40,
from source.cpp:2:
/usr/include/c++/4.7/bits/ostream.tcc:121:5: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__streambuf_type = std::basic_streambuf<char>]
/usr/include/c++/4.7/bits/ostream.tcc:121:5: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__streambuf_type* {aka std::basic_streambuf<char>*}'
In file included from /usr/include/c++/4.7/string:54:0,
from /usr/include/c++/4.7/bits/locale_classes.h:42,
from /usr/include/c++/4.7/bits/ios_base.h:43,
from /usr/include/c++/4.7/ios:43,
from /usr/include/c++/4.7/ostream:40,
from /usr/include/c++/4.7/iostream:40,
from source.cpp:2:
/usr/include/c++/4.7/bits/basic_string.h:2750:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
/usr/include/c++/4.7/bits/basic_string.h:2750:5: note: template argument deduction/substitution failed:
source.cpp:31:62: note: mismatched types 'const std::basic_string<_CharT, _Traits, _Alloc>' and 'float(float, float)'
source.cpp:31:62: note: mismatched types 'const std::basic_string<_CharT, _Traits, _Alloc>' and 'long double(long double, long double)'
source.cpp:31:62: note: mismatched types 'const std::basic_string<_CharT, _Traits, _Alloc>' and 'double(double, double)throw ()'
source.cpp:31:62: note: couldn't deduce template parameter '_Alloc'
In file included from /usr/include/c++/4.7/iostream:40:0,
from source.cpp:2:
/usr/include/c++/4.7/ostream:469:5: note: std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT) [with _CharT = char; _Traits = std::char_traits<char>]
/usr/include/c++/4.7/ostream:469:5: note: no known conversion for argument 2 from '<unresolved overloaded function type>' to 'char'
/usr/include/c++/4.7/ostream:474:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, char)
/usr/include/c++/4.7/ostream:474:5: note: template argument deduction/substitution failed:
source.cpp:31:62: note: cannot convert 'std::remainder' (type '<unresolved overloaded function type>') to type 'char'
In file included from /usr/include/c++/4.7/iostream:40:0,
from source.cpp:2:
/usr/include/c++/4.7/ostream:480:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, char)
/usr/include/c++/4.7/ostream:480:5: note: template argument deduction/substitution failed:
source.cpp:31:62: note: cannot convert 'std::remainder' (type '<unresolved overloaded function type>') to type 'char'
In file included from /usr/include/c++/4.7/iostream:40:0,
from source.cpp:2:
/usr/include/c++/4.7/ostream:486:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, signed char)
/usr/include/c++/4.7/ostream:486:5: note: template argument deduction/substitution failed:
source.cpp:31:62: note: cannot convert 'std::remainder' (type '<unresolved overloaded function type>') to type 'signed char'
In file included from /usr/include/c++/4.7/iostream:40:0,
from source.cpp:2:
/usr/include/c++/4.7/ostream:491:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, unsigned char)
/usr/include/c++/4.7/ostream:491:5: note: template argument deduction/substitution failed:
source.cpp:31:62: note: cannot convert 'std::remainder' (type '<unresolved overloaded function type>') to type 'unsigned char'
In file included from /usr/include/c++/4.7/iostream:40:0,
from source.cpp:2:
/usr/include/c++/4.7/ostream:511:5: note: std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>]
/usr/include/c++/4.7/ostream:511:5: note: no known conversion for argument 2 from '<unresolved overloaded function type>' to 'const char*'
In file included from /usr/include/c++/4.7/ostream:607:0,
from /usr/include/c++/4.7/iostream:40,
from source.cpp:2:
/usr/include/c++/4.7/bits/ostream.tcc:323:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const char*)
/usr/include/c++/4.7/bits/ostream.tcc:323:5: note: template argument deduction/substitution failed:
source.cpp:31:62: note: cannot convert 'std::remainder' (type '<unresolved overloaded function type>') to type 'const char*'
In file included from /usr/include/c++/4.7/iostream:40:0,
from source.cpp:2:
/usr/include/c++/4.7/ostream:528:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*)
/usr/include/c++/4.7/ostream:528:5: note: template argument deduction/substitution failed:
source.cpp:31:62: note: cannot convert 'std::remainder' (type '<unresolved overloaded function type>') to type 'const char*'
In file included from /usr/include/c++/4.7/iostream:40:0,
from source.cpp:2:
/usr/include/c++/4.7/ostream:541:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const signed char*)
/usr/include/c++/4.7/ostream:541:5: note: template argument deduction/substitution failed:
source.cpp:31:62: note: cannot convert 'std::remainder' (type '<unresolved overloaded function type>') to type 'const signed char*'
In file included from /usr/include/c++/4.7/iostream:40:0,
from source.cpp:2:
/usr/include/c++/4.7/ostream:546:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const unsigned char*)
/usr/include/c++/4.7/ostream:546:5: note: template argument deduction/substitution failed:
source.cpp:31:62: note: cannot convert 'std::remainder' (type '<unresolved overloaded function type>') to type 'const unsigned char*'
In file included from /usr/include/c++/4.7/iostream:40:0,
from source.cpp:2:
/usr/include/c++/4.7/ostream:600:5: note: template<class _CharT, class _Traits, class _Tp> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&&, const _Tp&)
/usr/include/c++/4.7/ostream:600:5: note: template argument deduction/substitution failed:
source.cpp:31:62: note: couldn't deduce template parameter '_Tp'