fork download
  1. #include <iostream>
  2. #include <locale>
  3. #include <string>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8. // your code goes here
  9.  
  10. ios_base::sync_with_stdio(false);
  11. wcout.imbue(locale("en_US.UTF-8"));
  12.  
  13. for (auto const&t : wstring (L"áéíóú")){
  14. wcout << t;
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0s 17048KB
stdin
Standard input is empty
stdout
áéíóú