__builtin_popcount 只用于 unsigned int,本题要用 __builtin_popcountll 来写。
__builtin_popcount
unsigned int
__builtin_popcountll