#include <iostream>
#include <string>
#include <numeric>
#include <functional>
int main()
{
std::string s1 = "agatgctagatttcg";
std::string s2 = "agcctcccgatagcc";
int diffs = std::inner_product(s1.begin(), s1.end(), s2.begin(), 0,
std::plus<int>(), std::not_equal_to<char>());
std::cout << "The number of pairwise mismatches: " << diffs << '\n';
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8bnVtZXJpYz4KI2luY2x1ZGUgPGZ1bmN0aW9uYWw+CgppbnQgbWFpbigpCnsKICAgIHN0ZDo6c3RyaW5nIHMxID0gImFnYXRnY3RhZ2F0dHRjZyI7CiAgICBzdGQ6OnN0cmluZyBzMiA9ICJhZ2NjdGNjY2dhdGFnY2MiOwoKICAgIGludCBkaWZmcyA9IHN0ZDo6aW5uZXJfcHJvZHVjdChzMS5iZWdpbigpLCBzMS5lbmQoKSwgczIuYmVnaW4oKSwgMCwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGQ6OnBsdXM8aW50PigpLCBzdGQ6Om5vdF9lcXVhbF90bzxjaGFyPigpKTsKCiAgICBzdGQ6OmNvdXQgPDwgIlRoZSBudW1iZXIgb2YgcGFpcndpc2UgbWlzbWF0Y2hlczogIiA8PCBkaWZmcyA8PCAnXG4nOwp9Cg==