In file included from main.cpp:16:0:
set.h:6:6: error: 'Set' has not been declared
void Set::Add(int64_t val) {
^~~
set.h: In function 'void Add(int64_t)':
set.h:8:12: error: 'c' was not declared in this scope
while (c[i] != -1 && c[i] != val) {
^
set.h:11:5: error: 'c' was not declared in this scope
c[i] = val;
^
set.h: At global scope:
set.h:13:6: error: 'Set' has not been declared
void Set::Remove(int64_t val) {
^~~
set.h: In function 'void Remove(int64_t)':
set.h:15:12: error: 'c' was not declared in this scope
while (c[i] != -1 && c[i] != val) {
^
set.h:18:9: error: 'c' was not declared in this scope
if (c[i] == val) {
^
set.h: At global scope:
set.h:22:6: error: 'Set' has not been declared
bool Set::Contains(int64_t val) const {
^~~
set.h:22:33: error: non-member function 'bool Contains(int64_t)' cannot have cv-qualifier
bool Set::Contains(int64_t val) const {
^~~~~
set.h: In function 'bool Contains(int64_t)':
set.h:24:12: error: 'c' was not declared in this scope
while (c[i] != -1 && c[i] != val) {
^
set.h:27:13: error: 'c' was not declared in this scope
return (c[i] == val);
^
set.h: At global scope:
set.h:30:1: error: 'Set' does not name a type; did you mean 'getw'?
Set::Set(const std::vector<int64_t>& a) {
^~~
getw
set.h:36:1: error: 'Set' does not name a type; did you mean 'getw'?
Set Set::Union(const Set& b) const {
^~~
getw
set.h:46:1: error: 'Set' does not name a type; did you mean 'getw'?
Set Set::Intersection(const Set& b) const {
^~~
getw
set.h:54:1: error: 'Set' does not name a type; did you mean 'getw'?
Set Set::Difference(const Set& b) const {
^~~
getw
set.h:62:1: error: 'Set' does not name a type; did you mean 'getw'?
Set Set::SymmetricDifference(const Set& b) const {
^~~
getw
set.h:73:22: error: 'Set' has not been declared
std::vector<int64_t> Set::Data() const {
^~~
set.h:73:34: error: non-member function 'std::vector<long int> Data()' cannot have cv-qualifier
std::vector<int64_t> Set::Data() const {
^~~~~
set.h: In function 'std::vector<long int> Data()':
set.h:76:13: error: 'c' was not declared in this scope
if (c[i] >= 0)
^
main.cpp: In function 'int main()':
main.cpp:37:9: error: 'Set' was not declared in this scope
Set s1(v1), s2(v2), s3;
^~~
main.cpp:37:9: note: suggested alternative: 'getw'
Set s1(v1), s2(v2), s3;
^~~
getw
main.cpp:40:17: error: 's3' was not declared in this scope
s3 = s1.Union(s2);
^~
main.cpp:40:17: note: suggested alternative: 'v3'
s3 = s1.Union(s2);
^~
v3
main.cpp:40:22: error: 's1' was not declared in this scope
s3 = s1.Union(s2);
^~
main.cpp:40:22: note: suggested alternative: 'v1'
s3 = s1.Union(s2);
^~
v1
main.cpp:40:31: error: 's2' was not declared in this scope
s3 = s1.Union(s2);
^~
main.cpp:40:31: note: suggested alternative: 'v2'
s3 = s1.Union(s2);
^~
v2
main.cpp:44:17: error: 's3' was not declared in this scope
s3 = s1.Intersection(s2);
^~
main.cpp:44:17: note: suggested alternative: 'v3'
s3 = s1.Intersection(s2);
^~
v3
main.cpp:44:22: error: 's1' was not declared in this scope
s3 = s1.Intersection(s2);
^~
main.cpp:44:22: note: suggested alternative: 'v1'
s3 = s1.Intersection(s2);
^~
v1
main.cpp:44:38: error: 's2' was not declared in this scope
s3 = s1.Intersection(s2);
^~
main.cpp:44:38: note: suggested alternative: 'v2'
s3 = s1.Intersection(s2);
^~
v2
main.cpp:48:17: error: 's3' was not declared in this scope
s3 = s1.Difference(s2);
^~
main.cpp:48:17: note: suggested alternative: 'v3'
s3 = s1.Difference(s2);
^~
v3
main.cpp:48:22: error: 's1' was not declared in this scope
s3 = s1.Difference(s2);
^~
main.cpp:48:22: note: suggested alternative: 'v1'
s3 = s1.Difference(s2);
^~
v1
main.cpp:48:36: error: 's2' was not declared in this scope
s3 = s1.Difference(s2);
^~
main.cpp:48:36: note: suggested alternative: 'v2'
s3 = s1.Difference(s2);
^~
v2
main.cpp:52:17: error: 's3' was not declared in this scope
s3 = s1.SymmetricDifference(s2);
^~
main.cpp:52:17: note: suggested alternative: 'v3'
s3 = s1.SymmetricDifference(s2);
^~
v3
main.cpp:52:22: error: 's1' was not declared in this scope
s3 = s1.SymmetricDifference(s2);
^~
main.cpp:52:22: note: suggested alternative: 'v1'
s3 = s1.SymmetricDifference(s2);
^~
v1
main.cpp:52:45: error: 's2' was not declared in this scope
s3 = s1.SymmetricDifference(s2);
^~
main.cpp:52:45: note: suggested alternative: 'v2'
s3 = s1.SymmetricDifference(s2);
^~
v2
main.cpp:57:25: error: 's1' was not declared in this scope
s1.Add(k);
^~
main.cpp:57:25: note: suggested alternative: 'v1'
s1.Add(k);
^~
v1
main.cpp:59:17: error: 's3' was not declared in this scope
s3 = s1;
^~
main.cpp:59:17: note: suggested alternative: 'v3'
s3 = s1;
^~
v3
main.cpp:59:22: error: 's1' was not declared in this scope
s3 = s1;
^~
main.cpp:59:22: note: suggested alternative: 'v1'
s3 = s1;
^~
v1
main.cpp:64:25: error: 's1' was not declared in this scope
s1.Remove(k);
^~
main.cpp:64:25: note: suggested alternative: 'v1'
s1.Remove(k);
^~
v1
main.cpp:66:17: error: 's3' was not declared in this scope
s3 = s1;
^~
main.cpp:66:17: note: suggested alternative: 'v3'
s3 = s1;
^~
v3
main.cpp:66:22: error: 's1' was not declared in this scope
s3 = s1;
^~
main.cpp:66:22: note: suggested alternative: 'v1'
s3 = s1;
^~
v1
main.cpp:71:29: error: 's1' was not declared in this scope
if (s1.Contains(k)) {
^~
main.cpp:71:29: note: suggested alternative: 'v1'
if (s1.Contains(k)) {
^~
v1
main.cpp:75:17: error: 's3' was not declared in this scope
s3 = s1;
^~
main.cpp:75:17: note: suggested alternative: 'v3'
s3 = s1;
^~
v3
main.cpp:75:22: error: 's1' was not declared in this scope
s3 = s1;
^~
main.cpp:75:22: note: suggested alternative: 'v1'
s3 = s1;
^~
v1
main.cpp:78:14: error: 's3' was not declared in this scope
v3 = s3.Data();
^~
main.cpp:78:14: note: suggested alternative: 'v3'
v3 = s3.Data();
^~
v3
|