From 2d53e3a6f5ea49d854c1525c537d1971e124d90a Mon Sep 17 00:00:00 2001 From: Hung Dang Date: Fri, 29 Mar 2019 00:58:55 -0400 Subject: [PATCH] Remove std namespace. --- chapter07.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter07.tex b/chapter07.tex index 30d3aad..556d9be 100644 --- a/chapter07.tex +++ b/chapter07.tex @@ -646,7 +646,7 @@ array to keep track of the maximum sums for (int y = 1; y < N; ++y) { sum[0] += value[y][0]; for (int x = 1; x < N; ++x) { - sum[x] = value[y][x] + std::max(sum[x-1], sum[x]); + sum[x] = value[y][x] + max(sum[x-1], sum[x]); } } \end{lstlisting}