#include <stdio.h> #include<stdlib.h> #define INITIAL_COUNT 1000 int main() { int* queue = NULL; int front = 0, rear = 0, count = 0; int n; scanf("%d", &n); getchar(); count = INITIAL_COUNT; queue = (int*)malloc(count * sizeof(int)); if (queue == NULL) { free(queue); return...