From 598287afd48b618316bfe38282c69e835b3aa706 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sat, 8 Jan 2022 18:57:26 -0600 Subject: Specify global ans variable on same line as usage in test.jl --- test.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test.jl b/test.jl index 2d7b6de..d73c4b8 100644 --- a/test.jl +++ b/test.jl @@ -17,8 +17,7 @@ end ans = 0 for i in A for j in A - global ans - ans += gcd(i, j) + global ans += gcd(i, j) end end println(ans) -- cgit v1.2.3-70-g09d2