type undefined is not a vector :
while(distance(self.skrzynka)<100) if(self usebuttonpressed())

There is a problem. How to fix this?