#include <stdio.h> #include <string.h> #include <stdbool.h> #define STACK_SIZE 100000 int contents[STACK_SIZE] = {0}; int count = 0; bool is_empty(); bool is_full(); void pop(); void top(); void push(int n); int main(){ int cmdn[100000] = {0}; int cmdc[100000] = {0}; int n; scanf(&...