fork download
  1. struct S {};
  2.  
  3. S operator"" s(unsigned long long)
  4. {
  5. return S();
  6. }
  7.  
  8. int main()
  9. {
  10. auto a = 1_s;
  11. return 0;
  12. }
Compilation error #stdin compilation error #stdout 0s 3136KB
stdin
Standard input is empty
compilation info
prog.cpp:3:14: warning: literal operator suffixes not preceded by '_' are reserved for future standardization
 S operator"" s(unsigned long long)
              ^
prog.cpp: In function 'int main()':
prog.cpp:10:11: error: unable to find numeric literal operator 'operator""_s'
  auto a = 1_s;
           ^
stdout
Standard output is empty