Skip to content

c++调试时,使用sort函数报错 #36

Description

@kirsuna

c++调试时,使用sort函数对vector容器排序就会报错,注释掉就没问题

报错内容为:
c:\Users\pcc_\AppData\Roaming\Code\User\globalStorage\wangtao0101.debug-leetcode\sourcecppproblem15.cpp:20:5: error: 'sort' was not declared in this scope
sort(nums.begin(), nums.end());
^~~~

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions