prog.cpp:9:18: error: ‘char8_t’ does not name a type; did you mean ‘char16_t’?
int Parse(const char8_t X[]) {
^~~~~~~
char16_t
prog.cpp: In function ‘std::ostream& operator<<(std::ostream&, UnicodeOne)’:
prog.cpp:35:40: error: ‘u8’ was not declared in this scope
if ((C[1] & (1 << 7)) != 0) { C[2] = u8'\0'; }
^~
prog.cpp:38:45: error: ‘u8’ was not declared in this scope
const std::int8_t X[4] = { C[0],C[1],C[2],u8'\0' };
^~
prog.cpp:38:47: error: expected ‘}’ before '\x0'
const std::int8_t X[4] = { C[0],C[1],C[2],u8'\0' };
~ ^~~~
prog.cpp:38:52: warning: no return statement in function returning non-void [-Wreturn-type]
const std::int8_t X[4] = { C[0],C[1],C[2],u8'\0' };
^
prog.cpp: At global scope:
prog.cpp:39:3: error: ‘OS’ does not name a type
OS << X;
^~
prog.cpp:40:3: error: expected unqualified-id before ‘return’
return OS;
^~~~~~
prog.cpp:41:2: error: expected declaration before ‘}’ token
}
^