1234567891011121314
#include<iostream> struct node { int x; struct node *next; }; int main() { int n; cin>>n; struct node *root; root = (struct node *) malloc( sizeof(struct node) ); root->next = 0; root->x=n; }