fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <cstdlib>
  4. #include <cstdio>
  5.  
  6. using namespace std;
  7.  
  8.  
  9. class str
  10. {
  11.  
  12. private:
  13. vector<char> A;
  14.  
  15. public:
  16.  
  17. str(const char *S) {
  18.  
  19. int sz = sizeof(S);
  20.  
  21. cerr << sz << endl;
  22.  
  23. for (int i = 0; i < sz; ++i) {
  24. cout << S[i];
  25. A.push_back(S[i]);
  26. }
  27. }
  28. };
  29.  
  30.  
  31.  
  32.  
  33. int main(int argc, char const *argv[])
  34. {
  35. str A("G");
  36.  
  37. return 0;
  38. }
  39.  
Success #stdin #stdout #stderr 0s 4560KB
stdin
Standard input is empty
stdout
Gvector
stderr
8