记录详情

Wrong Answer

/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 'Node* SetInter(Node*, Node*)':
/in/foo.cc:168:82: warning: unused variable 'p3' [-Wunused-variable]
  Node* head3 = new Node; head3 = NULL; Node* p1 = head1; Node* p2 = head2; Node* p3 = head3;
                                                                                  ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:222:63: warning: unused variable 'a3' [-Wunused-variable]
  int a1[10000] = { 0 }; int a2[10000] = { 0 }; int i = 0; int a3[10000] = { 0 };
                                                               ^~
/in/foo.cc:223:26: warning: unused variable 'n3' [-Wunused-variable]
  int n1 = 0; int n2 = 0, n3 = 0; scanf("%d%d", &n1, &n2);
                          ^~
# 状态 耗时 内存占用
#1 Accepted 1ms 460.0 KiB
#2 Wrong Answer 1ms 376.0 KiB
#3 Accepted 1ms 456.0 KiB
#4 Wrong Answer 1ms 456.0 KiB
#5 Wrong Answer 1ms 456.0 KiB

信息

递交者
类型
递交
题目
A9-3 数组中最大的负数
比赛
2023 程序设计与竞赛(作业8:链表的世界)
语言
C++
递交时间
2023-11-25 14:52:47
评测时间
2023-11-25 14:52:47
评测机
分数
40
总耗时
8ms
峰值内存
460.0 KiB