/ Vijos /

记录详情

Compile Error

foo.cc: In function 'bool cp(st, st)':
foo.cc:9:24: error: 'struct st' has no member named 'sim'; did you mean 'sum'?
    9 |  return x.sum>y.sum||x.sim==y.sum&&x.c>y.c||x.sim==y.sum&&x.c=y.c&&x.n<y.n;
      |                        ^~~
      |                        sum
foo.cc:9:47: error: 'struct st' has no member named 'sim'; did you mean 'sum'?
    9 |  return x.sum>y.sum||x.sim==y.sum&&x.c>y.c||x.sim==y.sum&&x.c=y.c&&x.n<y.n;
      |                                               ^~~
      |                                               sum
foo.cc: In function 'int main()':
foo.cc:22:10: error: 'i' was not declared in this scope
   22 |      for(i=1;i<=5;i++)
      |          ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1398 奖学金
语言
C++
递交时间
2022-04-23 10:30:17
评测时间
2022-04-23 10:30:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes