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)提供评测服务
信息
- 递交者
 - 类型
 - 递交
 - 题目
 - P2994 A7-5 数组的有序插入函数
 - 语言
 - C++
 - 递交时间
 - 2023-11-25 11:38:12
 - 评测时间
 - 2023-11-25 11:38:12
 - 评测机
 
- 分数
 - 60
 - 总耗时
 - 20ms
 - 峰值内存
 - 412.0 KiB