Problem card
User YH
Submission Time 2024-02-06 18:02:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:32:4: error: no match for ‘operator*’ (operand type is ‘Node’)
32 | *ending_node = end;
| ^~~~~~~~~~~~
card.cpp:33:15: error: base operand of ‘->’ has non-pointer type ‘Node’
33 | ending_node->head = temp_node;
| ^~
card.cpp:34:22: error: cannot convert ‘Node’ to ‘Node*’ in assignment
34 | temp_node->tail = ending_node;
| ^~~~~~~~~~~
| |
| Node
card.cpp:48:36: error: invalid conversion from ‘Node*’ to ‘int’ [-fpermissive]
48 | Node new_start = starting_node->tail;
| ~~~~~~~~~~~~~~~^~~~
| |
| Node*
card.cpp:11:11: note: initializing argument 1 of ‘Node::Node(int)’
11 | Node(int new_value=0) {
| ~~~~^~~~~~~~~~~
card.c