记录详情

Wrong Answer

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:147:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  147 |         for (i = 0; i < n1; i++) scanf("%d", &a1[i]);   for (i = 0; i < n2; i++) scanf("%d", &a2[i]);
      |         ^~~
foo.cc:147:57: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  147 |         for (i = 0; i < n1; i++) scanf("%d", &a1[i]);   for (i = 0; i < n2; i++) scanf("%d", &a2[i]);
      |                                                         ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 4ms 460.0 KiB
#3 Wrong Answer User output longer than standard answer. 3ms 412.0 KiB
#4 Wrong Answer User output longer than standard answer. 3ms 456.0 KiB
#5 Accepted 4ms 412.0 KiB

信息

递交者
类型
递交
题目
A10-3 数组的去重
比赛
2023 程序设计与竞赛(作业8:链表的世界)
语言
C++
递交时间
2023-11-25 14:01:55
评测时间
2023-11-25 14:01:55
评测机
分数
60
总耗时
20ms
峰值内存
460.0 KiB