fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6. string test = "test";
  7. cout << test << endl;
  8. test.erase(0,1);
  9. cout << test << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
test
est