fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main()
  5. {
  6. const std::string vowels = "aAeEiIoOuU";
  7. const std::string o = "ob";
  8.  
  9. std::string s;
  10. while (std::cin >> s)
  11. {
  12. auto i = s.find_first_of(vowels);
  13. while (i != std::string::npos)
  14. {
  15. s.insert(++i, o);
  16. i = s.find_first_of(vowels, i + o.size());
  17. }
  18. std::cout << s << std::endl;
  19. }
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0.01s 5276KB
stdin
mani suac mareks
stdout
maobniob
suobaobc
maobreobks