#include <stdio.h> #include <stdlib.h> #include <string.h> // 队列节点结构体 typedef struct node { int val; struct node *next; } *Node, node; // 队列指针结构体 typedef struct queue { struct node *front; struct node *rear; int count; } *Queue, queue; void push(Queue *q, int...