Hello!
I’m stuck at this level of the game. I really don’t understand what’s wrong in my code?`
int main()
{
auto friend = hero.findNearest(hero.findFriends());
auto diffx = friend.pos.x - hero.pos.x;
auto diffy = friend.pos.y - hero.pos.y;
while (true)
{
auto target = {“x”: friend.pos.x - diffx , “y”: friend.pos.y - diffy} ;
hero.move(target);
}
return 0;
}
I am getting this error for the line 10
“Expected a ; to finish the local variable on line 10 but end of input found”
Thanks in advance for your replies.
`