fork download
  1. #ifndef FUNCTION03_H_
  2. #define FUNCTION03_H_
  3.  
  4. #include <stdio.h>
  5.  
  6. int median(int a, int b, int c);
  7.  
  8. int main() {
  9. int a, b, c;
  10. scanf("%d%d%d", &a, &b, &c);
  11. double x1, x2;
  12. int ans = median(a, b, c);
  13. printf("%d\n", ans);
  14. return 0;
  15. }
  16. #endif // FUNCTION03_H_
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:11:14: warning: unused variable ‘x2’ [-Wunused-variable]
   double x1, x2;
              ^~
prog.c:11:10: warning: unused variable ‘x1’ [-Wunused-variable]
   double x1, x2;
          ^~
prog.c:10:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d%d", &a, &b, &c);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /home/BTDv1M/ccTv1FBo.o: in function `main':
prog.c:(.text.startup+0x3c): undefined reference to `median'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty