#include <malloc.h> #include <stdio.h> int main() { int n, q; scanf("%d", &n); scanf("%d", &q); char s[6]; int x; int rear = 0; int top = 0; //int que[n]; int *queue=(int *)malloc((n+1)*sizeof(int)); int i = 0; while (i < q) { scanf("%s", s); if (...