fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. std::string a = "test";
  6. for( auto &c : a )
  7. {
  8. cout << c << '\n';
  9. }
  10. return 0;
  11. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
t
e
s
t