1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
// Errors:
g++ -c /home/k/Desktop/a.cpp -o /home/k/Desktop/a.o
/home/k/Desktop/a.cpp: In function ‘int main()’:
/home/k/Desktop/a.cpp:126:54: error: in C++98 ‘q5_options’ must be initialized by constructor, not by ‘{...}’
vector<string>q5_options = {"15", "45", "570", "35"};
^
/home/k/Desktop/a.cpp:126:54: error: could not convert ‘{"15", "45", "570", "35"}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<std::__cxx11::basic_string<char> >’
/home/k/Desktop/a.cpp:127:155: error: in C++98 ‘q6_options’ must be initialized by constructor, not by ‘{...}’
vector<string>q6_options = {"Kola Superdeep Borehole, 12261 m", "Noma Everhole, 13428 m", "Gabe Brittonhole, 9762 m", "The Bingham Canyon Mine, 4023 m"};
^
/home/k/Desktop/a.cpp:127:155: error: could not convert ‘{"Kola Superdeep Borehole, 12261 m", "Noma Everhole, 13428 m", "Gabe Brittonhole, 9762 m", "The Bingham Canyon Mine, 4023 m"}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<std::__cxx11::basic_string<char> >’
/home/k/Desktop/a.cpp:128:88: error: in C++98 ‘q7_options’ must be initialized by constructor, not by ‘{...}’
vector<string>q7_options = {"Wait, chickens cannot fly!", "9 sec", "16 sec", "13 sec"};
^
/home/k/Desktop/a.cpp:128:88: error: could not convert ‘{"Wait, chickens cannot fly!", "9 sec", "16 sec", "13 sec"}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<std::__cxx11::basic_string<char> >’
Process terminated with status 1 (0 minute(s), 0 second(s))
6 error(s), 0 warning(s) (0 minute(s), 0 second(s))
|