In file included from main.cpp:16:0:
set.h:10:9: error: 'explcit' does not name a type; did you mean 'exit'?
explcit Set(const std::vector<int64_t> &vec) {
^~~~~~~
exit
set.h: In member function 'void Set::Remove(int64_t)':
set.h:29:31: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < this->set.size(); i++) {
~~^~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:37:18: error: no matching function for call to 'Set::Set(std::vector<long int>&)'
Set s1(v1), s2(v2), s3;
^
In file included from main.cpp:16:0:
set.h:13:9: note: candidate: Set::Set()
Set() {}
^~~
set.h:13:9: note: candidate expects 0 arguments, 1 provided
set.h:5:7: note: candidate: Set::Set(const Set&)
class Set {
^~~
set.h:5:7: note: no known conversion for argument 1 from 'std::vector<long int>' to 'const Set&'
set.h:5:7: note: candidate: Set::Set(Set&&)
set.h:5:7: note: no known conversion for argument 1 from 'std::vector<long int>' to 'Set&&'
main.cpp:37:26: error: no matching function for call to 'Set::Set(std::vector<long int>&)'
Set s1(v1), s2(v2), s3;
^
In file included from main.cpp:16:0:
set.h:13:9: note: candidate: Set::Set()
Set() {}
^~~
set.h:13:9: note: candidate expects 0 arguments, 1 provided
set.h:5:7: note: candidate: Set::Set(const Set&)
class Set {
^~~
set.h:5:7: note: no known conversion for argument 1 from 'std::vector<long int>' to 'const Set&'
set.h:5:7: note: candidate: Set::Set(Set&&)
set.h:5:7: note: no known conversion for argument 1 from 'std::vector<long int>' to 'Set&&'
main.cpp:78:17: error: 'class Set' has no member named 'Data'
v3 = s3.Data();
^~~~
cc1plus: all warnings being treated as errors
|