fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int foo = 1;
  6. if (foo = 2)
  7. {
  8. printf("Ругается!\n");
  9. }
  10. }
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: suggest parentheses around assignment used as truth value [-Werror=parentheses]
     if (foo = 2)
     ^
cc1: all warnings being treated as errors
stdout
Standard output is empty