Paradox
Paradox

Reputation: 2035

C++ Error-code <U+0013>

I have a function in C++ that I am testing, and after careful inspection I'm pretty sure everything is correct. However, I'm still getting a mysterious error relating to the "return" statement at the end of the function.

enter image description here

Where "population" is a real matrix (using the armadillo matrix package).

Upvotes: 0

Views: 622

Answers (3)

anbr
anbr

Reputation: 1

If you are used to using Emacs keybindings and tried to Cx-s Cx-c to save and quit in another IDE ie Xcode it will insert odd unicode characters.

Upvotes: 0

flogram_dev
flogram_dev

Reputation: 42858

You have accidentally managed to enter the Device Control 3 character (which has the unicode value U+0031) before return and after ;. The character is probably invisible for you, which is why you aren't seeing anything.

Replace those with spaces. You can probably turn your editor into some kind of "show invisibles" mode which might help.

Upvotes: 1

20kLeagues
20kLeagues

Reputation: 134

Looks like the error code represents a Unicode value. Check if the file is clean of characters which shouldn't be there (copy paste into notepad and then copy paste back).

Upvotes: 2

Related Questions