diff --git a/2023207/main.cpp b/2023207/main.cpp index 1d9bc61..e97a86b 100644 --- a/2023207/main.cpp +++ b/2023207/main.cpp @@ -75,7 +75,7 @@ int main() { if (base != 0) { double coefficient = base / diag_elem; set_content(row, col, -coefficient); - for (int l = col + 1; l < n; l++) { + for (int l = col + 1; l < col + 3; l++) { set_content(row, l, get_content(row, l) - coefficient * get_content(col, l)); } }