Language: C++

#include <stack>
#include <vector>

auto main() -> int {
	int n_stacks;
	std::cin >> n_stacks;

	std::vector<std::stack<char>> stacks(n_stacks);
	for (;;) {
		std::string order;
		std::cin >> order;
		if (order == "quit") {
			break;
		}

		if (order == "push") {
			int dst;
			char block;
			std::cin >> dst;
			std::cin >> block;
			stacks[dst-1].push(block);
		}

		if (order == "pop") {
			int src;
			char block;
			std::cin >> src;
			block = stacks[src-1].top();
			std::cout << block << std::endl;
			stacks[src-1].pop();
		}

		if (order == "move") {
			int src;
			int dst;
			char block;
			std::cin >> src;
			std::cin >> dst;
			block = stacks[src-1].top();
			stacks[dst-1].push(block);
			stacks[src-1].pop();
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'cin' is not a member of 'std'
    6 |         std::cin >> n_stacks;
      |              ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <vector>
  +++ |+#include <iostream>
    3 | 
a.cc:10:22: error: 'string' is not a member of 'std'
   10 |                 std::string order;
      |                      ^~~~~~
a.cc:3:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    2 | #include <vector>
  +++ |+#include <string>
    3 | 
a.cc:11:22: error: 'cin' is not a member of 'std'
   11 |                 std::cin >> order;
      |                      ^~~
a.cc:11:22: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:29: error: 'order' was not declared in this scope
   11 |                 std::cin >> order;
      |                             ^~~~~
a.cc:19:30: error: 'cin' is not a member of 'std'
   19 |                         std::cin >> dst;
      |                              ^~~
a.cc:19:30: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:30: error: 'cin' is not a member of 'std'
   20 |                         std::cin >> block;
      |                              ^~~
a.cc:20:30: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:27:30: error: 'cin' is not a member of 'std'
   27 |                         std::cin >> src;
      |                              ^~~
a.cc:27:30: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:29:30: error: 'cout' is not a member of 'std'
   29 |                         std::cout << block << std::endl;
      |                              ^~~~
a.cc:29:30: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:29:52: error: 'endl' is not a member of 'std'
   29 |                         std::cout << block << std::endl;
      |                                                    ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include <vector>
  +++ |+#include <ostream>
    3 | 
a.cc:37:30: error: 'cin' is not a member of 'std'
   37 |                         std::cin >> src;
      |                              ^~~
a.cc:37:30: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:38:30: error: 'cin' is not a member of 'std'
   38 |                         std::cin >> dst;
      |                              ^~~
a.cc:38:30: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'