记录详情

Compile Error

foo.cc: In function 'void insertnode(Node**, int)':
foo.cc:16:15: error: expected unqualified-id before 'new'
   16 |         Node* new = createnode(x);
      |               ^~~
foo.cc:19:25: error: 'newNode' was not declared in this scope; did you mean 'Node'?
   19 |                 *head = newNode;
      |                         ^~~~~~~
      |                         Node
foo.cc:28:33: error: expected type-specifier before ';' token
   28 |                 newp->next = new;
      |                                 ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
2023 程序设计与竞赛(作业8:链表的世界)
语言
C++
递交时间
2023-11-25 21:59:50
评测时间
2023-11-25 21:59:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes