museum.cpp:7:10: error: 'string' was not declared in this scope
std::set<string> m;
^~~~~~
museum.cpp:7:10: note: suggested alternatives:
In file included from /usr/include/c++/7/string:39:0,
from museum.cpp:3:
/usr/include/c++/7/bits/stringfwd.h:74:33: note: 'std::__cxx11::string'
typedef basic_string<char> string;
^~~~~~
/usr/include/c++/7/bits/stringfwd.h:74:33: note: 'std::__cxx11::string'
museum.cpp:7:16: error: template argument 1 is invalid
std::set<string> m;
^
museum.cpp:7:16: error: template argument 2 is invalid
museum.cpp:7:16: error: template argument 3 is invalid
museum.cpp: In function 'void score(int, int)':
museum.cpp:10:2: error: 'string' was not declared in this scope
string s;
^~~~~~
museum.cpp:10:2: note: suggested alternatives:
In file included from /usr/include/c++/7/string:39:0,
from museum.cpp:3:
/usr/include/c++/7/bits/stringfwd.h:74:33: note: 'std::__cxx11::string'
typedef basic_string<char> string;
^~~~~~
/usr/include/c++/7/bits/stringfwd.h:74:33: note: 'std::__cxx11::string'
museum.cpp:11:2: error: 's' was not declared in this scope
s.append(std::to_string(i));
^
museum.cpp:12:11: error: 'to_string' was not declared in this scope
s.append(to_string(j));
^~~~~~~~~
museum.cpp:12:11: note: suggested alternatives:
In file included from /usr/include/c++/7/string:52:0,
from museum.cpp:3:
/usr/include/c++/7/bits/basic_string.h:6454:3: note: 'std::__cxx11::to_string'
to_string(long double __val)
^~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6454:3: note: 'std::__cxx11::to_string'
museum.cpp:13:2: error: 'sort' was not declared in this scope
sort(s.begin(), s.end());
^~~~
museum.cpp:13:2: note: suggested alternative:
In file included from /usr/include/c++/7/algorithm:62:0,
from museum.cpp:4:
/usr/include/c++/7/bits/stl_algo.h:4856:5: note: 'std::sort'
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^~~~
museum.cpp:14:5: error: request for member 'insert' in 'm', which is of non-class type 'int'
m.insert(s);
^~~~~~
museum.cpp: In function 'long long int CountSimilarPairs(std::vector<int>, std::vector<int>, std::vector<int>)':
museum.cpp:32:4: error: 'string' was not declared in this scope
string s;
^~~~~~
museum.cpp:32:4: note: suggested alternatives:
In file included from /usr/include/c++/7/string:39:0,
from museum.cpp:3:
/usr/include/c++/7/bits/stringfwd.h:74:33: note: 'std::__cxx11::string'
typedef basic_string<char> string;
^~~~~~
/usr/include/c++/7/bits/stringfwd.h:74:33: note: 'std::__cxx11::string'
museum.cpp:34:18: error: too many arguments to function 'void score(int, int)'
score(m, i, j);
^
museum.cpp:9:6: note: declared here
void score(int i, int j) {
^~~~~
museum.cpp:38:18: error: too many arguments to function 'void score(int, int)'
score(m, i, j);
^
museum.cpp:9:6: note: declared here
void score(int i, int j) {
^~~~~
museum.cpp:42:18: error: too many arguments to function 'void score(int, int)'
score(m, i, j);
^
museum.cpp:9:6: note: declared here
void score(int i, int j) {
^~~~~
museum.cpp:47:22: error: request for member 'size' in 'm', which is of non-class type 'int'
return (long long)m.size();
^~~~