fork download
  1. #include <iostream>
  2.  
  3. std::string operator"" _deg(double d)
  4. {
  5. return ;
  6. }
  7.  
  8. int main()
  9. {
  10. std::cout << 5_rs << '\n';
  11. }
Compilation error #stdin compilation error #stdout 0s 3272KB
stdin
Standard input is empty
compilation info
prog.cpp:3:37: error: 'std::string operator""_deg(double)' has invalid argument list
 std::string operator"" _deg(double d)
                                     ^
prog.cpp: In function 'int main()':
prog.cpp:10:19: error: unable to find numeric literal operator 'operator""_rs'
      std::cout << 5_rs << '\n';
                   ^
stdout
Standard output is empty