Xoractive.cpp: In function 'std::vector<int> guess(int)':
Xoractive.cpp:6:14: error: 'get' was not declared in this scope
6 | ans[0] = get(1);
| ^~~
Xoractive.cpp:7:5: error: 'map' was not declared in this scope
7 | map<int, int> pos;
| ^~~
Xoractive.cpp:2:1: note: 'std::map' is defined in header '<map>'; did you forget to '#include <map>'?
1 | #include "interactive.h"
+++ |+#include <map>
2 | using namespace std;
Xoractive.cpp:7:9: error: expected primary-expression before 'int'
7 | map<int, int> pos;
| ^~~
Xoractive.cpp:10:13: error: 'j' was not declared in this scope
10 | for(j = 1; j < n; ++j) {
| ^
Xoractive.cpp:18:13: error: expected primary-expression before 'int'
18 | map<int, int> cnt;
| ^~~
Xoractive.cpp:19:32: error: 'cnt' was not declared in this scope; did you mean 'int'?
19 | for(auto x: A) if(x) ++cnt[x];
| ^~~
| int
Xoractive.cpp:20:32: error: 'cnt' was not declared in this scope; did you mean 'int'?
20 | for(auto x: B) if(x) --cnt[x];
| ^~~
| int
Xoractive.cpp:21:21: error: 'cnt' was not declared in this scope; did you mean 'int'?
21 | for(auto x: cnt) {
| ^~~
| int
Xoractive.cpp:23:17: error: 'pos' was not declared in this scope
23 | pos[x.first ^ ans[0]] += (1 << i);
| ^~~
Xoractive.cpp:27:17: error: 'pos' was not declared in this scope
27 | for(auto x: pos) ans[x.second] = x.first;
| ^~~