`typedef std::pair<std::string, int> CraftId` to make code more readable
Downgrade C++11 code: no `auto`, no for-each loops