fork download
  1. #include <stdio.h>
  2. int main(void) {
  3. printf("%8lx\n", (int){42});
  4. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:3:20: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Werror=format=]
         printf("%8lx\n", (int){42});
                    ^
cc1: all warnings being treated as errors
stdout
Standard output is empty