fork(1) download
  1. #include <string>
  2. #include <algorithm>
  3. #include <iostream>
  4.  
  5. int main()
  6. {
  7. std::string str = "Saw my reflection in snow covered hills";
  8. std::reverse(str.begin(), str.end());
  9. std::cout << str;
  10. return 0;
  11. }
Success #stdin #stdout 0s 2856KB
stdin
Standard input is empty
stdout
sllih derevoc wons ni noitcelfer ym waS