Problem | card |
---|---|
User | YH |
Submission Time | 2024-02-06 18:14:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
card.cpp:8:7: error: field ‘head’ has incomplete type ‘Node’
8 | Node head = 0;
| ^~~~
card.cpp:5:7: note: definition of ‘class Node’ is not complete until the closing brace
5 | class Node {
| ^~~~
card.cpp:9:7: error: field ‘tail’ has incomplete type ‘Node’
9 | Node tail = 0;
| ^~~~
card.cpp:5:7: note: definition of ‘class Node’ is not complete until the closing brace
5 | class Node {
| ^~~~
card.cpp: In function ‘int main()’:
card.cpp:23:13: error: invalid conversion from ‘Node*’ to ‘int’ [-fpermissive]
23 | Node end = new Node(m-1);
| ^~~~~~~~~~~~~
| |
| Node*
card.cpp:11:11: note: initializing argument 1 of ‘Node::Node(int)’
11 | Node(int new_value) {
| ~~~~^~~~~~~~~
card.cpp:32:17: error: ambiguous overload for ‘operator=’ (operand types are ‘Node’ and ‘Node*’)
32 | *tem