fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout << string(50, 'x') << endl;
  6. cout << string{50, 'x'} << endl;
  7. return 0;
  8. }
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2x