error: 'sort' is not a member of 'std'

前端 未结 2 1482
自闭症患者
自闭症患者 2021-01-17 07:32

I just would like to ask what does this error mean and how to fix it thanks!

error: \'sort\' is not a member of \'std\'

         


        
相关标签:
2条回答
  • 2021-01-17 08:07

    You have to #include <algorithm>. See this.

    0 讨论(0)
  • 2021-01-17 08:23

    Include the algorithm header. That's why there is a error.

    #include <algorithm>
    
    0 讨论(0)
提交回复
热议问题