should be `size_t i = 0;` to prevent compiler warning.