related to https://github.com/kth-competitive-programming/kactl/issues/72 but have a hash for each prefix of the file. Then you can binary search over lines to find your typo