fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. float sum,diff
  5. printf("hello world");
  6. diff=20-10
  7. printf("20-10=%f",diff);
  8.  
  9. return 0;
  10. }
  11.  
Compilation error #stdin compilation error #stdout 0s 9432KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:5:2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘printf’
  printf("hello world");
  ^~~~~~
prog.c:6:2: error: ‘diff’ undeclared (first use in this function)
  diff=20-10
  ^~~~
prog.c:6:2: note: each undeclared identifier is reported only once for each function it appears in
prog.c:7:2: error: expected ‘;’ before ‘printf’
  printf("20-10=%f",diff);
  ^~~~~~
prog.c:4:8: warning: unused variable ‘sum’ [-Wunused-variable]
  float sum,diff
        ^~~
stdout

Standard output is empty