diff --git a/ch03/ex3_18.cpp b/ch03/ex3_18.cpp index 703123c0..39d1eb65 100644 --- a/ch03/ex3_18.cpp +++ b/ch03/ex3_18.cpp @@ -1,10 +1,7 @@ #include -using std::vector; - int main() { - vector ivec{0}; - ivec[0] = 42; - return 0; + std::vector ivec{ 42 }; + return 0; }