const int INF = 0x3f3f3f3f
std::vector<int> v = {0, 1, 2, 3, 4, 5}; for (auto i : v) { // do something }
基于范围的 for 循环 (C++11 起) - cppreference.com