fork download
  1. #include <cstddef>
  2. int operator"" _s(const char32_t *a, size_t b){
  3. return 0;
  4. }
  5. int f(){
  6. using a=decltype(U"\x1181"_s);
  7. using b=decltype(U"\x8111"_s);
  8. using c=decltype(U" \x1181"_s);
  9. return 0;
  10. }
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int f()’:
prog.cpp:7:22: error: converting to execution character set: Invalid or incomplete multibyte or wide character
     using b=decltype(U"\x8111"_s);
                      ^
prog.cpp:8:22: error: converting to execution character set: Invalid or incomplete multibyte or wide character
     using c=decltype(U" \x1181"_s);
                      ^
stdout
Standard output is empty