Не работает метод throw(target)

int main()
{
while(true)
{
auto enemy = hero.findNearestEnemy();
hero.throw(enemy);
}
return 0;
}

пишет ошибку
expected a ; to finish the expression on line 7 but end of input found
При чём если я заменяю допустим на hero.attack(enemy), то ошибок не возникает

Welcome the CoCo Discourse forums @georgie ! :partying_face:
This is a place to get help within levels, dicuss ideas, give suggestions for the game or just chat with other awesome coders!
Check out the FAQ and the rules if you haven’t already and have fun! :grinning_face_with_smiling_eyes:

Make sure you post your code correctly by clicking image.