Skip to content

Commit

Permalink
Fix compiler/style errors
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Oct 11, 2024
1 parent 5671d53 commit f9b4623
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fortran/src/p0020.f90
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module Problem0020
use constants
implicit none
contains
pure integer function p0020() result(answer)
pure integer(i18t) function p0020() result(answer)
integer(i18t), dimension(10) :: numbers
integer(i18t) :: power
integer :: i, j
Expand Down
2 changes: 1 addition & 1 deletion lua/src/p0020.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ return {
end
end
end
for i = 1,16 do
for _ = 1,16 do
for j = 1,#numbers do
answer = answer + math.floor(numbers[j] / power) % 10
end
Expand Down

0 comments on commit f9b4623

Please sign in to comment.