У вашего броузера проблема в совместимости с HTML5
Hamming Distance in c/c++
A Hamming distance represents in information Technology the number of points at which two corresponding pieces of data can be different. and the two string will be always same length . otherwise it will not work. the total difference between every position known as hamming distance.
Example:
a string is 101010
b string is 011101
so here hamming distance will be 5 .