Anna.cpp: In function 'void Anna(int, long long int, int, int*)':
Anna.cpp:6:5: error: 'string' was not declared in this scope
string ans;
^~~~~~
Anna.cpp:6:5: note: suggested alternative: 'struct'
string ans;
^~~~~~
struct
Anna.cpp:14:13: error: 'ans' was not declared in this scope
ans += "000";
^~~
Anna.cpp:19:21: error: 'ans' was not declared in this scope
ans += "001";
^~~
Anna.cpp:22:21: error: 'ans' was not declared in this scope
ans += "010";
^~~
Anna.cpp:26:22: error: 'ans' was not declared in this scope
else if (ans[i+1] == 0) {
^~~
Anna.cpp:57:17: error: 'ans' was not declared in this scope
ans += "011";
^~~
Anna.cpp:60:17: error: 'ans' was not declared in this scope
ans += "111";
^~~
Anna.cpp:63:17: error: 'ans' was not declared in this scope
ans += "100";
^~~
Anna.cpp:66:17: error: 'ans' was not declared in this scope
ans += "101";
^~~
Anna.cpp:72:15: error: 'ans' was not declared in this scope
Set(i,ans[i]=='0'?0:1);
^~~
Bruno.cpp: In function 'long long int Bruno(int, int*)':
Bruno.cpp:5:5: error: 'string' was not declared in this scope
string ans;
^~~~~~
Bruno.cpp:5:5: note: suggested alternative: 'struct'
string ans;
^~~~~~
struct
Bruno.cpp:9:26: error: 'ans' was not declared in this scope
else if (r == 1) ans += "0";
^~~
Bruno.cpp:10:26: error: 'ans' was not declared in this scope
else if (r == 2) ans += "1";
^~~
Bruno.cpp:11:26: error: 'ans' was not declared in this scope
else if (r == 3) ans += "00";
^~~
Bruno.cpp:12:26: error: 'ans' was not declared in this scope
else if (r == 4) ans += "10";
^~~
Bruno.cpp:13:26: error: 'ans' was not declared in this scope
else if (r == 5) ans += "11";
^~~
Bruno.cpp:14:26: error: 'ans' was not declared in this scope
else if (r == 6) ans += "0";
^~~
Bruno.cpp:15:26: error: 'ans' was not declared in this scope
else if (r == 7) ans += "01";
^~~
Bruno.cpp:19:25: error: 'ans' was not declared in this scope
for (int i = 0; i < ans.size(); i++) {
^~~