fork download
  1. #include <iostream>
  2. #include<cstring>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. string str;
  8. str.reserve(30);
  9. str[0] = 'a';
  10. cout<<str<<endl;
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5548KB
stdin
Standard input is empty
stdout