fork download
  1. int f(int x) {
  2. // If x < 5, then UB.
  3. if (x >= 5)
  4. return 6;
  5. // As specified, UB occurs.
  6. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int f(int)’:
prog.cpp:6: warning: control reaches end of non-void function
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
stdout
Standard output is empty