记录详情

Wrong Answer

foo.cc: In function 'node* insert(node*, int)':
foo.cc:51:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   51 |         if (i = head)
      |             ~~^~~~~~
foo.cc: In function 'int main()':
foo.cc:65:16: warning: unused variable 'i' [-Wunused-variable]
   65 |         int n, i, t;
      |                ^
foo.cc:67:30: warning: unused variable 'p' [-Wunused-variable]
   67 |         node* head = NULL, * p = NULL;
      |                              ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 30, expect 11. 4ms 412.0 KiB
#2 Accepted 4ms 412.0 KiB
#3 Accepted 3ms 412.0 KiB
#4 Wrong Answer Read 22, expect 11. 4ms 332.0 KiB
#5 Accepted 3ms 396.0 KiB

信息

递交者
类型
递交
题目
P2994 A7-5 数组的有序插入函数
语言
C++
递交时间
2023-11-25 11:38:12
评测时间
2023-11-25 11:38:12
评测机
分数
60
总耗时
20ms
峰值内存
412.0 KiB