记录详情

Accepted

foo.cc: In function 'Node* Search(Node*, int)':
foo.cc:65:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   65 |                 if (p->data == x)
      |                 ^~
foo.cc:67:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   67 |                         p = p->next;
      |                         ^
foo.cc: In function 'Node* Insert(Node*, int)':
foo.cc:117:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  117 |         if (newp->data > prev->data) prev->next = newp; newp->next = NULL;
      |         ^~
foo.cc:117:57: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  117 |         if (newp->data > prev->data) prev->next = newp; newp->next = NULL;
      |                                                         ^~~~
foo.cc: In function 'int main()':
foo.cc:163:15: warning: unused variable 'head3' [-Wunused-variable]
  163 |         Node* head3 = Create(a3, n3);
      |               ^~~~~
foo.cc:165:15: warning: unused variable 'head22' [-Wunused-variable]
  165 |         Node* head22 = Create(a2, n2);
      |               ^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB

信息

递交者
类型
自测
语言
C++
递交时间
2023-11-25 14:11:33
评测时间
2023-11-25 14:11:33
评测机
分数
10
总耗时
4ms
峰值内存
412.0 KiB