| Problem | card |
|---|---|
| User | YH |
| Submission Time | 2024-02-06 18:29:08 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
card.cpp: In function ‘int main()’:
card.cpp:29:13: error: invalid conversion from ‘Node*’ to ‘int’ [-fpermissive]
29 | Node end = new Node(m-1);
| ^~~~~~~~~~~~~
| |
| Node*
card.cpp:11:11: note: initializing argument 1 of ‘Node::Node(int, Node*, Node*)’
11 | Node(int new_value, Node* new_head = nullptr, Node* new_tail = nullptr) {
| ~~~~^~~~~~~~~