aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-011/paulo-custodio/cpp/ch-2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-011/paulo-custodio/cpp/ch-2.cpp b/challenge-011/paulo-custodio/cpp/ch-2.cpp
index d2847da6ec..831b467e4f 100644
--- a/challenge-011/paulo-custodio/cpp/ch-2.cpp
+++ b/challenge-011/paulo-custodio/cpp/ch-2.cpp
@@ -14,7 +14,7 @@ using namespace std;
vector<vector<int>> identity_matrix(int n) {
vector<vector<int>> id;
for (int row = 0; row < n; row++) {
- id.push_back({});
+ id.emplace_back();
for (int col = 0; col < n; col++)
id[row].push_back(col == row ? 1 : 0);
}