fork download
  1. int main()
  2. {
  3. }
  4.  
  5. struct fuck {
  6. int i;
  7.  
  8. fuck()
  9. try
  10. : i(100)
  11. {
  12. }
  13. catch(...)
  14. {
  15. }
  16. };
  17.  
  18.  
  19. struct fuck2 {
  20. int i;
  21.  
  22. fuck2()
  23. try
  24. : i{100}
  25. {
  26. }
  27. catch(...)
  28. {
  29. }
  30. };
  31.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:25:2: error: expected unqualified-id before ‘{’ token
  {
  ^
prog.cpp:27:2: error: expected unqualified-id before ‘catch’
  catch(...)
  ^
prog.cpp: In constructor ‘fuck2::fuck2()’:
prog.cpp:24:10: error: expected ‘{’ at end of input
   : i{100}
          ^
prog.cpp:24:10: error: expected ‘catch’ at end of input
prog.cpp:24:10: error: expected ‘(’ at end of input
prog.cpp:24:10: error: expected type-specifier at end of input
prog.cpp:24:10: error: expected ‘)’ at end of input
prog.cpp:24:10: error: expected ‘{’ at end of input
stdout
Standard output is empty