fork download
  1. #include <iostream>
  2. #include <algorithm>
  3.  
  4. int main() {
  5. constexpr size_t BUFFER_SIZE = 1024;
  6. auto buffer = new char[BUFFER_SIZE];
  7. std::cin.getline(buffer, BUFFER_SIZE);
  8.  
  9. 0[buffer] = 'O';
  10.  
  11. std::cout << buffer;
  12.  
  13. delete[] buffer;
  14. }
Success #stdin #stdout 0s 15224KB
stdin
op is dickhead sucker
stdout
Op is dickhead sucker