password.cpp:2:3: error: 'string' does not name a type
2 | string s;
| ^~~~~~
password.cpp: In constructor 'sir::sir()':
password.cpp:4:11: error: class 'sir' does not have any field named 's'
4 | sir() : s("") {}
| ^
password.cpp: In member function 'bool sir::operator<(const sir&) const':
password.cpp:7:12: error: 's' was not declared in this scope
7 | return s.size() > a.s.size();
| ^
password.cpp:7:25: error: 'const struct sir' has no member named 's'
7 | return s.size() > a.s.size();
| ^
password.cpp: At global scope:
password.cpp:11:11: error: 'string' was not declared in this scope
11 | int query(string str);
| ^~~~~~
password.cpp:13:1: error: 'string' does not name a type
13 | string guess(int n, int m) {
| ^~~~~~