记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:14:12: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
   printf("%s %d",a[i],c[i]);
            ^
/in/foo.c: In function 's':
/in/foo.c:22:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  scanf("%d%d",m,j);
          ^
/in/foo.c:22:12: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
  scanf("%d%d",m,j);
            ^
/in/foo.c:29:8: error: 'p' undeclared (first use in this function)
    for(p=0;p<n;p++){
        ^
/in/foo.c:29:8: note: each undeclared identifier is reported only once for each function it appears in

信息

递交者
类型
自测
题目
P1064 贪婪的送礼者
语言
C
递交时间
2020-12-01 12:51:36
评测时间
2020-12-01 12:51:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes