/ Vijos /

记录详情

Accepted

foo.c: In function 'main':
foo.c:14:11: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[14]' [-Wformat=]
   scanf("%s",&name1[i]);
          ~^  ~~~~~~~~~
foo.c:18:11: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[14]' [-Wformat=]
   scanf("%s",&name2[i]);
          ~^  ~~~~~~~~~
foo.c:29:14: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[14]' [-Wformat=]
      scanf("%s",&name3[j]);
             ~^  ~~~~~~~~~
foo.c:7:19: warning: unused variable 'c2' [-Wunused-variable]
  int a,c1[12]={0},c2[36]={0};
                   ^~
foo.c:11:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&a);
  ^~~~~~~~~~~~~~
foo.c:14:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%s",&name1[i]);
   ^~~~~~~~~~~~~~~~~~~~~
foo.c:18:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%s",&name2[i]);
   ^~~~~~~~~~~~~~~~~~~~~
foo.c:23:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d %d",&b,&c);
     ^~~~~~~~~~~~~~~~~~~~
foo.c:29:6: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
      scanf("%s",&name3[j]);
      ^~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 0ms 256.0 KiB
#2 Accepted 0ms 284.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 1ms 256.0 KiB
#5 Accepted 1ms 256.0 KiB
#6 Accepted 0ms 256.0 KiB
#7 Accepted 0ms 256.0 KiB
#8 Accepted 0ms 256.0 KiB
#9 Accepted 1ms 256.0 KiB
#10 Accepted 1ms 256.0 KiB

信息

递交者
类型
递交
题目
P1035 贪婪的送礼者
语言
C
递交时间
2021-08-12 19:03:17
评测时间
2021-08-12 19:04:46
评测机
分数
100
总耗时
9ms
峰值内存
284.0 KiB