#include <stdio.h> #include <stdlib.h> typedef struct{ int data; struct list* next; }list; int main() { int n,x; scanf("%d %d",&n,&x); list* arr=(list*)malloc(sizeof(list)); arr->next = NULL; list* head=arr; for (int i = 0; i < n; i++) { list* p=(list*)malloc(size...