#include #include using namespace std; struct lista{ int value; unique_ptr next; lista (int n){ this->value = n; this->next = nullptr; } }; void drukujListe(lista *head){ if(head){ if(head->next){ cout << head->value << " " << head->next.get(); }else cout << head->value; }else cout << ""; } int main() { unique_ptr list = make_unique(1); drukujListe(list.get()); return 0; }