fork download
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. int main() {
  5.  
  6. std::vector<std::string> cmds = {"hi", "hello", "test"};
  7.  
  8. for (std::string command : cmds)
  9. {
  10. std::cout << command << std::endl;
  11. }
  12.  
  13. // your code goes here
  14. return 0;
  15. }
Success #stdin #stdout 0s 3476KB
stdin
Standard input is empty
stdout
hi
hello
test