You have a colon after function KCenter1D(y::Array{Float64,1},K::Int64),
which gets the parser confused.On Wed, Jun 18, 2014 at 7:40 PM, shashank shekhar <[email protected]> wrote: > Hi > > I have written an algorithm for the K Center problem in 1 dimensional > using dp. Here : > https://github.com/shkr/Algorithms/blob/master/KCenter1D.jl > > But upon including the file > > *julia> **include("KCenter1D.jl")* > > *ERROR: syntax: malformed function arguments 1* > > * in include at boot.jl:238* > > * in include_from_node1 at loading.jl:114* > > *at /Users/shashankshekhar/git/Algorithms/KCenter1D.jl:35* > > > *line 35 : *B = ones(Float64,(K,N)) > > > *Help in solving this error will be appreciated. I just started writing in > julia today.* > > > *Thanks* > > > >
