// This program demonstrates how to create a pipeline scheduling framework
// that computes the maximum occurrence of the character for each input string.
//
// The pipeline has the following structure:
//
// o -> o -> o
// | |
// v v
// o -> o -> o
// | |
// v v
// o -> o -> o
// | |
// v v
// o -> o -> o (string -> unordered_map -> pair)
//
// Input:
// abade
// ddddf
// eefge
// xyzzd
// ijjjj
// jiiii
// kkijk
//
// Output:
// a:2
// d:4
// e:3
// z:2
// j:4
// i:4
// k:3
#include
#include
// Function: format the map
std::string format_map(const std::unordered_map& map) {
std::ostringstream oss;
for(const auto& [i, j] : map) {
oss