记录详情

Compile Error

/in/foo.cc: In function 'void Unique(Node*, int)':
/in/foo.cc:28:26: error: expected ';' before '*' token
   for(Node*p=q->next,Node*c1=q;p!=NULL;c1=c1->next,p=p->next)
                          ^
/in/foo.cc:28:27: error: 'c1' was not declared in this scope
   for(Node*p=q->next,Node*c1=q;p!=NULL;c1=c1->next,p=p->next)
                           ^~
/in/foo.cc:28:33: warning: for increment expression has no effect [-Wunused-value]
   for(Node*p=q->next,Node*c1=q;p!=NULL;c1=c1->next,p=p->next)
                                 ^
/in/foo.cc:28:39: error: expected ')' before ';' token
   for(Node*p=q->next,Node*c1=q;p!=NULL;c1=c1->next,p=p->next)
                                       ^
/in/foo.cc:28:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(Node*p=q->next,Node*c1=q;p!=NULL;c1=c1->next,p=p->next)
   ^~~
/in/foo.cc:28:40: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for(Node*p=q->next,Node*c1=q;p!=NULL;c1=c1->next,p=p->next)
                                        ^~
/in/foo.cc:28:40: error: 'c1' was not declared in this scope
/in/foo.cc:28:52: error: 'p' was not declared in this scope
   for(Node*p=q->next,Node*c1=q;p!=NULL;c1=c1->next,p=p->next)
                                                    ^

信息

递交者
类型
递交
题目
A10-3 数组的去重
语言
C++
递交时间
2023-12-21 17:13:53
评测时间
2023-12-21 17:13:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes