exercism / exercism/cpp

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

Open
#938 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
290
Forks
244
PR merge metrics
No merged PRs in 30d

Description

Using...

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

`List_comparison sublist(const std::vector& list_a, const std::vector& 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.