/ Vijos /

记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:16:11: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[25]' [-Wformat=]
   scanf("%s %d %d %c %c %d",&s,&a[i],&b[i],&x,&y,&c[i]);
           ^
/in/foo.c:16:14: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long int *' [-Wformat=]
   scanf("%s %d %d %c %c %d",&s,&a[i],&b[i],&x,&y,&c[i]);
              ^
/in/foo.c:16:17: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'long int *' [-Wformat=]
   scanf("%s %d %d %c %c %d",&s,&a[i],&b[i],&x,&y,&c[i]);
                 ^
/in/foo.c:16:26: warning: format '%d' expects argument of type 'int *', but argument 7 has type 'long int *' [-Wformat=]
   scanf("%s %d %d %c %c %d",&s,&a[i],&b[i],&x,&y,&c[i]);
                          ^
/in/foo.c:35:15: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
  printf("%s\n%d\n%d",s1,count[j],sum);
               ^
/in/foo.c:35:19: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
  printf("%s\n%d\n%d",s1,count[j],sum);
                   ^
/in/foo.c:12:11: warning: iteration 1000 invokes undefined behavior [-Waggressive-loop-optimizations]
   count[i]=0;
   ~~~~~~~~^~
/in/foo.c:11:2: note: within this loop
  for(i=1;i<=1001;i++)
  ^~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 256.0 KiB
#2 Wrong Answer 1ms 256.0 KiB
#3 Wrong Answer 1ms 256.0 KiB
#4 Wrong Answer 1ms 256.0 KiB
#5 Wrong Answer 1ms 256.0 KiB
#6 Wrong Answer 1ms 256.0 KiB
#7 Wrong Answer 1ms 256.0 KiB
#8 Wrong Answer 1ms 360.0 KiB
#9 Wrong Answer 1ms 352.0 KiB
#10 Wrong Answer 2ms 256.0 KiB

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C
递交时间
2018-05-22 00:02:56
评测时间
2018-05-22 00:02:56
评测机
分数
0
总耗时
16ms
峰值内存
360.0 KiB