fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a=10
  5. int b=45
  6. printf("%d\n",add(a,b))
  7. return 0;
  8. }
  9. int add(int x, int y)
  10. {
  11. return x+y;
  12. }
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: expected ‘,’ or ‘;’ before ‘int’
  int b=45
  ^~~
prog.c:4:6: warning: unused variable ‘a’ [-Wunused-variable]
  int a=10
      ^
stdout
Standard output is empty