Please use range-based loop.