fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main ()
  5. {
  6. deque<char>dq;
  7. string s;
  8. cin>>s;
  9. copy(s.begin(),s.end(),back_inserter(dq));
  10. dq.push_front('F');
  11. copy(dq.begin(),dq.end(),ostream_iterator<char>(cout));
  12. }
  13.  
Success #stdin #stdout 0s 4508KB
stdin
SomeString
stdout
FSomeString