fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int flag = 42;
  6. printf(flag ? "%f" : "%d", 3.4);
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:6:5: error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘double’ [-Werror=format]
cc1: all warnings being treated as errors
stdout
Standard output is empty