Accepted

foo.cc: In function 'bool cmp1(yy, yy)':
foo.cc:22:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   22 |         return a.b>b.b||a.b==b.b&&a.a<b.a;
      |                         ~~~~~~~~^~~~~~~~~
foo.cc: In function 'bool cmp2(zz, zz)':
foo.cc:26:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   26 |         return a.f>b.f||a.f==b.f&&a.e<b.e;
      |                         ~~~~~~~~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:51:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   51 |         for(i=1;i<=k;i++)cout<<q1[i].a<<" ";cout<<endl;
      |         ^~~
foo.cc:51:45: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   51 |         for(i=1;i<=k;i++)cout<<q1[i].a<<" ";cout<<endl;
      |                                             ^~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 5ms 412.0 KiB
#3 Accepted 3ms 412.0 KiB
#4 Accepted 3ms 412.0 KiB
#5 Accepted 3ms 412.0 KiB
#6 Accepted 3ms 412.0 KiB
#7 Accepted 3ms 492.0 KiB
#8 Accepted 4ms 484.0 KiB
#9 Accepted 4ms 412.0 KiB
#10 Accepted 6ms 412.0 KiB

信息

递交者
类型
递交
题目
P2168 排座位(seat)
语言
C++
递交时间
2023-08-27 21:10:33
评测时间
2023-08-27 21:10:33
评测机
分数
100
总耗时
42ms
峰值内存
492.0 KiB