fork download
  1. #include <stdio.h>
  2.  
  3. int main () {
  4.  
  5. int = 23, y =32, res;
  6. res = x + y;
  7.  
  8. printf ("Res is %d\n", res);
  9. return 0;
  10. }
Compilation error #stdin compilation error #stdout 0s 9432KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:5:6: error: expected identifier or ‘(’ before ‘=’ token
  int = 23, y =32, res;
      ^
prog.c:6:2: error: ‘res’ undeclared (first use in this function)
  res = x + y;
  ^~~
prog.c:6:2: note: each undeclared identifier is reported only once for each function it appears in
prog.c:6:8: error: ‘x’ undeclared (first use in this function)
  res = x + y;
        ^
prog.c:6:12: error: ‘y’ undeclared (first use in this function)
  res = x + y;
            ^
stdout
Standard output is empty