foo.c:1:19: warning: extra tokens at end of #include directive
#include <stdio.h>int main(){ void fun(int time,int *p1,int *p2,int *p3); int time,h,m,s,f; int *p1=&h,*p2=&m,*p3=&s; printf("请输入以bai秒为单位的时间du量zhi\n"); scanf("%d",&time); fun(time,p1,p2,p3); printf("hour=%d,minute=%d,second=%d",h,m,s); return 0;}void fun(int time,int *p1,int *p2,int *p3){ *p1=time/3600; *p2=time%3600/60; *p3=time%60;}
^~~
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status