记录详情

Compile Error

/in/foo.cc: In constructor 'LinkList::LinkList()':
/in/foo.cc:33:25: error: expected unqualified-id before 'new'
    int x; cin>>x; Node *new p=new Node(x);
                         ^~~
/in/foo.cc:33:25: error: expected initializer before 'new'
/in/foo.cc:35:10: error: 'newp' was not declared in this scope
     Head=newp;
          ^~~~
/in/foo.cc:37:16: error: 'newp' was not declared in this scope
     tail->next=newp;
                ^~~~
/in/foo.cc:38:9: error: 'newp' was not declared in this scope
    tail=newp;
         ^~~~
/in/foo.cc: In member function 'void LinkList::Append(int)':
/in/foo.cc:73:3: error: 'p' was not declared in this scope
   p->next=newp;  Count++;
   ^

信息

递交者
类型
递交
题目
P1028 OO7-3 链表对象的交集
语言
C++
递交时间
2019-04-10 14:06:16
评测时间
2019-04-10 14:06:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes