记录详情

Accepted

/in/foo.cc: In function 'Node* Search(Node*, int)':
/in/foo.cc:65:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if (p->data == x)
   ^~
/in/foo.cc:67:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    p = p->next;
    ^
/in/foo.cc: In function 'Node* Insert(Node*, int)':
/in/foo.cc:117:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (newp->data > prev->data) prev->next = newp; newp->next = NULL;
  ^~
/in/foo.cc:117:50: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if (newp->data > prev->data) prev->next = newp; newp->next = NULL;
                                                  ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:147:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (i = 0; i < n1; i++) scanf("%d", &a1[i]); for (i = 0; i < n2; i++) scanf("%d", &a2[i]);
  ^~~
/in/foo.cc:147:48: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for (i = 0; i < n1; i++) scanf("%d", &a1[i]); for (i = 0; i < n2; i++) scanf("%d", &a2[i]);
                                                ^~~
# 状态 耗时 内存占用
#1 Accepted 2ms 376.0 KiB

信息

递交者
类型
自测
题目
A10-3 数组的去重
语言
C++
递交时间
2023-11-25 14:01:52
评测时间
2023-11-25 14:01:52
评测机
分数
10
总耗时
2ms
峰值内存
376.0 KiB