fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int ret = func(10, 5);
  6. }
  7.  
  8. int func(int i, int j)
  9. {
  10. return (i+j);
  11. }
  12.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:5:19: error: implicit declaration of function ‘func’ [-Werror=implicit-function-declaration]
         int ret = func(10, 5);
                   ^~~~
prog.c:5:13: error: unused variable ‘ret’ [-Werror=unused-variable]
         int ret = func(10, 5);
             ^~~
cc1: all warnings being treated as errors
stdout
Standard output is empty