记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:5:5: error: expected ',' or ';' before 'int'
     int n=3;
     ^~~
/in/foo.c:7:17: error: 'n' undeclared (first use in this function)
     int*p=min(a,n);
                 ^
/in/foo.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:8:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Wformat=]
     printf("%d",&(*p));//输出地址
              ^
/in/foo.c: In function 'min':
/in/foo.c:17:22: error: 'P' undeclared (first use in this function)
         if(array[i]<*P)
                      ^

信息

递交者
类型
自测
题目
P1000 语言学习
语言
C
递交时间
2021-12-08 08:52:15
评测时间
2021-12-08 08:52:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes