# Error:MethodError: no method matching getindex(::typeof(LCSlength), ::Int64)

**URL:** https://discourse.julialang.org/t/error-no-method-matching-getindex-typeof-lcslength-int64/25464
**Category:** General Usage
**Tags:** question
**Created:** [June 19, 2019, 9:52pm UTC](https://discourse.julialang.org/t/error-no-method-matching-getindex-typeof-lcslength-int64/25464 "2019-06-19T21:52:12Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ffevotte](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ffevotte/32/6587_2.png) [@ffevotte](https://discourse.julialang.org/u/ffevotte)
#### Post date: [June 19, 2019, 11:46pm UTC](https://discourse.julialang.org/t/error-no-method-matching-getindex-typeof-lcslength-int64/25464/2 "2019-06-19T23:46:55Z")

</div>

Welcome to discourse. Please avoid posting screenshots of your code: it will be easier for us to help you if we can copy-paste your buggy code to try and improve it.

See below for some instructions about how to correctly quote source code here:

> [@PSA: how to quote code with backticks](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530):
>
> This is a short post on how to use backticks (` and ```) to quote code, so it is easy to read. This post can be linked to new users who are confused by this feature. Why By quoting your code, you get a monospaced font (which preserves indentation) and syntax highlighting. This makes it easier to read your code and help you. Displayed code looks like this: function displayed\_code(x::Int, y::Int) if x \< y println("x is smaller") else println("or not") end end Inline…

  

As for your problem, I can’t see very well (yet another problem with screenshots), but isn’t the x in your 5th line lowercase when it should be uppercase?

---

_[View the full topic](https://discourse.julialang.org/t/error-no-method-matching-getindex-typeof-lcslength-int64/25464)._
