The problem is that
\\ is read as an optional argument. It can be used to specify more vertical space between the lines via e.g.
\\[12pt]. But here you do not want your text
[...] read as an argument to the
\\ command, instead you need to tell LaTeX to take it easy with
some other text\\\relax
In genaral you should not be using
\\ to break lines on ordinary text. A blank line will give a new paragraph.
\\ is appropriate in environments such as
flushleft. For code examples the
verbatim environment would be a better start:
some other text
Here the line breaks in your source are respected and you don't need
\\. More sophisticated code typesetting is provided by packages such as