Skip to content

sublist exercise causes "redeclared as different kind of entity" error #938

Open
@e2ibrobbins

Description

@e2ibrobbins

Using...

namespace sublis { enum List_comparison { equal, sublist, superlist, unequal };

List_comparison sublist(const std::vector<int>& list_a, const std::vector<int>& list_b); }
... I get the following:
error: ‘sublist::List_comparison sublist::sublist(const std::vector&, const std::vector&)’ redeclared as different kind of entity

I recommend a different name for the sublist function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions