/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:10:62: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[25]' [-Wformat=]
         scanf("%s %d %d %c %c %d ",&s[i],&q1,&q2,&c1,&c2,&num);
                                    ~~~~~                     ^
foo.cc:8:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
     ~~~~~^~~~~~~~~
foo.cc:10:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%s %d %d %c %c %d ",&s[i],&q1,&q2,&c1,&c2,&num);
         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:7:37: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
     int n,sum=0,max=0,q1,q2,num,a,b,k;
                                     ^
# 状态 耗时 内存占用
#1 Accepted 1ms 288.0 KiB
#2 Accepted 1ms 280.0 KiB
#3 Accepted 1ms 292.0 KiB
#4 Accepted 1ms 304.0 KiB
#5 Accepted 1ms 288.0 KiB
#6 Accepted 1ms 292.0 KiB
#7 Accepted 1ms 256.0 KiB
#8 Accepted 1ms 284.0 KiB
#9 Accepted 1ms 292.0 KiB
#10 Accepted 1ms 288.0 KiB

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2021-01-31 18:19:01
评测时间
2021-01-31 18:19:01
评测机
分数
100
总耗时
12ms
峰值内存
304.0 KiB