/ Vijos /

记录详情

Accepted

/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 Accepted 1ms 256.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 1ms 256.0 KiB
#5 Accepted 2ms 256.0 KiB
#6 Accepted 1ms 256.0 KiB
#7 Accepted 1ms 256.0 KiB
#8 Accepted 1ms 372.0 KiB
#9 Accepted 2ms 256.0 KiB
#10 Accepted 1ms 256.0 KiB

信息

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