Why a friend of mine can't run my codes? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Why a friend of mine can't run my codes?

I gave a code that worked in my computer to a friend of mine and he couldn't run it. The compiler said the function to_string was not declared in his scope, but string library was included and it worked for me.

7th Apr 2017, 7:01 AM
Giovanni Del Gallo
Giovanni Del Gallo - avatar
1 Answer
+ 14
Compiler issues. Please read this thread which contains explanations and fixes. http://stackoverflow.com/questions/31117733/to-string-and-convert-str-not-declared-in-scope
7th Apr 2017, 7:12 AM
Hatsy Rei
Hatsy Rei - avatar