prog.cpp: In function ‘int main()’:
prog.cpp:6:56: error: in C++98 ‘cmds’ must be initialized by constructor, not by ‘{...}’
std::vector<std::string> cmds = {"hi", "hello", "test"};
^
prog.cpp:6:56: error: could not convert ‘{"hi", "hello", "test"}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<std::basic_string<char> >’
prog.cpp:8:29: error: range-based ‘for’ loops are not allowed in C++98 mode
for (std::string command : cmds)
^