fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. a, b int
  6. a = 5 + 1
  7. b = a
  8. printf(a, b)
  9. return 0;
  10. }
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:5:2: error: 'a' undeclared (first use in this function)
  a, b int
  ^
prog.c:5:2: note: each undeclared identifier is reported only once for each function it appears in
prog.c:5:5: error: 'b' undeclared (first use in this function)
  a, b int
     ^
prog.c:5:3: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  a, b int
   ^
prog.c:5:7: error: expected ';' before 'int'
  a, b int
       ^
stdout
Standard output is empty