lyuboyn.cpp: In function 'std::__cxx11::string mask(int, int)':
lyuboyn.cpp:23:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(mask.size() < n) {
~~~~~~~~~~~~^~~
lyuboyn.cpp: In function 'void check(std::vector<int>, int, int)':
lyuboyn.cpp:35:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i < ans.size(); i++) {
~~^~~~~~~~~~~~
lyuboyn.cpp: In function 'int main()':
lyuboyn.cpp:83:20: error: too few arguments to function 'std::__cxx11::string mask(int, int)'
if (mask(ans[0]) != s) {
^
lyuboyn.cpp:14:8: note: declared here
string mask(int x, int n) {
^~~~
lyuboyn.cpp:84:19: warning: division by zero [-Wdiv-by-zero]
cout << 1 / 0 << "\n";
~~^~~