diff options
author | Oskar <[email protected]> | 2024-10-06 23:05:52 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-10-06 23:05:52 +0200 |
commit | ee020f14877e5ed1708147a22133e9a413a948f1 (patch) | |
tree | e066b98e81ccab2bc02dc508919447beb17674b0 /8p11.cpp | |
parent | 0921163e1f88c8e80991f0c94e0fc70c6dcba72d (diff) |
more
Diffstat (limited to '8p11.cpp')
-rw-r--r-- | 8p11.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -32,9 +32,9 @@ int main () { people.push_back(info); } - for(auto &a : people) { + for(const auto &a : people) { std::cout << a.name << "\n"; - for(auto &b : a.phones) { + for(const auto &b : a.phones) { std::cout << b << "\n"; } } |