Language
C++
Compiler
gcc 8.3.0
Options
Warnings
Boost 1.69.0
C++14(GNU)
no pedantic
Raw compiler options
-DBROKEN
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-8.3.0/include -std=gnu++14 -DBROKENExit Code:
1
Author
anonymous
almost 7 years ago
C++
gcc 8.3.0
Author
anonymous
almost 7 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-8.3.0/include -std=gnu++14 -DBROKENprog.cc: In instantiation of 'Var::Var(T) [with T = std::vector<Var>]':
prog.cc:17:40: required from here
prog.cc:7:23: error: cannot convert 'std::vector<Var>' to 'int' in initialization
Var(T x) : value(x) {}
^