fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x = 1 || 1 && 1;
  5. return 0;
  6. }
  7.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:4:12: error: suggest parentheses around ‘&&’ within ‘||’ [-Werror=parentheses]
  int x = 1 || 1 && 1;
            ^~
prog.c:4:6: error: unused variable ‘x’ [-Werror=unused-variable]
  int x = 1 || 1 && 1;
      ^
cc1: all warnings being treated as errors
stdout
Standard output is empty