记录详情

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 'Node* SetInter(Node*, Node*)':
foo.cc:168:89: warning: unused variable 'p3' [-Wunused-variable]
  168 |         Node* head3 = new Node; head3 = NULL; Node* p1 = head1; Node* p2 = head2; Node* p3 = head3;
      |                                                                                         ^~
foo.cc: In function 'int main()':
foo.cc:264:70: warning: unused variable 'a3' [-Wunused-variable]
  264 |         int a1[10000] = { 0 }; int a2[10000] = { 0 }; int i = 0; int a3[10000] = { 0 };
      |                                                                      ^~
foo.cc:265:33: warning: unused variable 'n3' [-Wunused-variable]
  265 |         int n1 = 0; int n2 = 0, n3 = 0; scanf("%d%d", &n1, &n2);
      |                                 ^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 412.0 KiB

信息

递交者
类型
自测
题目
A9-7 数组中所有极大值
语言
C++
递交时间
2023-11-25 15:09:49
评测时间
2023-11-25 15:09:49
评测机
分数
10
总耗时
3ms
峰值内存
412.0 KiB