fork download
  1. #include <iostream>
  2. #include<string>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7.  
  8. string x="ab";
  9. int i;
  10. x[0]='\0';
  11. cout<<x;
  12. cout<<x.size();
  13. return 0;
  14. }
Success #stdin #stdout 0s 4368KB
stdin
Standard input is empty
stdout
b2