Код: Выделить всё
#include
using namespace std;
struct Node {
int nodeVal = 0;
Node *next = NULL;
};
struct linkedList {
Node head{.nodeVal = 1, .next = NULL};
int len = 1;
/*Adds node to last*/
void addNode(Node A) {
static int i = 1;
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78697901/i-dont-understand-where-the-problem-is-please-look-into-this[/url]