记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:20:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
         if(b>80)
         ^~
foo.cc:22:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
           if(k>=1)
           ^~
foo.cc:24:11: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
           if(m=='Y'&&b>80)
           ^~
foo.cc:26:12: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
            if(n=='Y')
            ^~
foo.cc:33:19: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
                   if(m=='Y'&&b>80)
                   ^~
foo.cc:35:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
                    if(n=='Y')
                    ^~
foo.cc:5:21: warning: unused variable 's' [-Wunused-variable]
   int N,M,a,b,i,j,k,s,sum;
                     ^
foo.cc:9:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&N);
   ~~~~~^~~~~~~~~
foo.cc:14:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&M);
     ~~~~~^~~~~~~~~
foo.cc:17:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
       scanf("%s %d%d %c %c %d",str,&a,&b,&m,&n,&k);
       ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥1456ms ≥256.0 KiB
#2 Runtime Error Aborted 1ms 256.0 KiB
#3 Time Exceeded ≥1455ms ≥236.0 KiB
#4 Time Exceeded ≥1454ms ≥256.0 KiB
#5 Time Exceeded ≥1456ms ≥256.0 KiB
#6 Time Exceeded ≥1448ms ≥260.0 KiB
#7 Time Exceeded ≥1448ms ≥236.0 KiB
#8 Time Exceeded ≥1275ms ≥196.0 KiB
#9 Time Exceeded ≥1282ms ≥216.0 KiB
#10 Runtime Error Aborted 0ms 260.0 KiB

信息

递交者
类型
递交
题目
P1006 谁拿了最多奖学金
语言
C++
递交时间
2021-09-12 20:10:02
评测时间
2021-09-12 21:01:36
评测机
分数
0
总耗时
11279ms
峰值内存
260.0 KiB