sh -c make-s ./llcpInt.cpp:22:29: error: no matching constructor for initialization of 'Node' Node* tmp = new Node(curr->data); NNN ./llcpInt.h:6:8: note: candidate constructor (the implicit copy constructor) not viable : no known conversion from 'int' to 'const Node' for 1st argument struct Node ./llcpInt.h:6:8: note: candidate constructor (the implicit move constructor) not viable : no known conversion from 'int' to 'Node' for 1st argument ./llcpInt.h:6:8: note: candidate constructor (the implicit default constructor) not via ble: requires arguments, but 1 was provided
#ifndef LLCP_INT_H
#define LLCP_INT_H
#include <iostream>
struct Node
{
int data;
Node *link;
};
void DelOddCopEven(Node*& headPtr);
int FindListLength(Node* headPtr);
bool IsSortedUp(Node* headPtr);
void InsertAsHead(Node*& headPtr, int value);
void InsertAsTail(Node*& headPtr, int value);
void InsertSortedUp(Node*& headPtr, int value);
bool DelFirstTargetNode(Node*& headPtr, int target);
bool DelNodeBefore1stMatch(Node*& headPtr, int target);
void ShowAll(std::ostream& outs, Node* headPtr);
void FindMinMax(Node* headPtr, int& minValue, int& maxValue);
double FindAverage(Node* headPtr);
void ListClear(Node*& headPtr, int noMsg = 0);
// prototype of DelOddCopEven of Assignment 5 Part 1
#endif
![>sh -c make-s
./llcpInt.cpp:22:29:
error: no matching constructor for initialization of 'Node'
Node* tmp = new Node(curr->data);
./llcpInt.h:6:8: note: candidate constructor (the implicit copy constructor) not viable
: no known conversion from 'int' to 'const Node' for 1st argument
struct Node
./llcpInt.h:6:8: note: candidate constructor (the implicit move constructor) not viable
: no known conversion from 'int' to 'Node' for 1st argument
./llcpInt.h:6:8: note: candidate constructor (the implicit default constructor) not via
ble: requires arguments, but 1 was provided
1 error generated](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F9e6fa127-a003-469d-9a51-b1d4610918ed%2Faeb3f11b-977a-4235-bed8-b917bca32b78%2Fp079k3d_processed.png&w=3840&q=75)
![1 #include <iostream>
2 #include <cstdlib>
3 #include "llcpInt.h"
using namespace std;
45
5
6
7
0056
8
9
10
12345
11 -
12
13
14
15
16
17
18
19
20
void Delodd CopEven (Node* & headPtr) {
Node* curr = headPtr;
Node* prev = nullptr;
21 ✓
22
23
24
25
26
27
28
29 }
while (curr != nullptr) {
}
if (curr->data % 2 == 1) {
if (prev
nullptr) {
headPtr = curr->link;
delete curr;
curr = headPtr;
} else {
==
prev->link = curr->link;
delete curr;
curr = prev->link;
}
} else {
Node* tmp = new Node(curr->data);
tmp->link = curr->link;
curr->link = tmp;
prev = curr;
curr = curr->link;](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F9e6fa127-a003-469d-9a51-b1d4610918ed%2Faeb3f11b-977a-4235-bed8-b917bca32b78%2Ff2sdeq_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)