gift.cpp:2:29: error: 'vector' has not been declared
2 | int construct(int n, int r, vector<int> a, vector<int> b, vector<int> x)
| ^~~~~~
gift.cpp:2:35: error: expected ',' or '...' before '<' token
2 | int construct(int n, int r, vector<int> a, vector<int> b, vector<int> x)
| ^
gift.cpp: In function 'int construct(int, int, int)':
gift.cpp:4:5: error: 'string' was not declared in this scope
4 | string s;
| ^~~~~~
gift.cpp:4:5: note: suggested alternatives:
In file included from /usr/include/c++/10/string:39,
from gift.h:2,
from gift.cpp:1:
/usr/include/c++/10/bits/stringfwd.h:79:33: note: 'std::string'
79 | typedef basic_string<char> string;
| ^~~~~~
In file included from gift.h:2,
from gift.cpp:1:
/usr/include/c++/10/string:67:11: note: 'std::pmr::string'
67 | using string = basic_string<char>;
| ^~~~~~
gift.cpp:7:9: error: 's' was not declared in this scope
7 | s.push_back('B');
| ^
gift.cpp:9:11: error: 's' was not declared in this scope
9 | craft(s);
| ^