Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if(cj[im]<cj[j]||cj[im]==cj[j]&&hm[im]>hm[j]){
                     ~~~~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc:11:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(int j=i+1;j<=n;j++)
   ^~~
/in/foo.cc:15:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
    swap(cj[i],cj[im]);
    ^~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 360.0 KiB
#2 Accepted 1ms 376.0 KiB
#3 Accepted 1ms 376.0 KiB
#4 Accepted 1ms 376.0 KiB
#5 Accepted 2ms 376.0 KiB
#6 Accepted 2ms 344.0 KiB
#7 Accepted 4ms 336.0 KiB
#8 Accepted 13ms 452.0 KiB
#9 Accepted 18ms 452.0 KiB
#10 Accepted 1ms 356.0 KiB

信息

递交者
类型
递交
题目
P1461 分数线划定
比赛
2024.8.2暑期中级2班练习
语言
C++
递交时间
2024-08-03 09:28:47
评测时间
2024-08-03 09:28:47
评测机
分数
100
总耗时
50ms
峰值内存
452.0 KiB