Fix. Include <algorithm>.