2019-07-09 C++で拡張for文 C++ 競プロ 実装例 const auto&で受けるのが万能そう for(const auto& d : {3, 5, 15, 25, 75}) { cout << d << endl; }