Xoractive.cpp: In function 'std::vector<int> guess()':
Xoractive.cpp:18:9: error: 'n' was not declared in this scope
cin >> n;
^
Xoractive.cpp:18:9: note: suggested alternative: 'yn'
cin >> n;
^
yn
Xoractive.cpp:20:10: error: 'ask' was not declared in this scope
int d = ask (1);
^~~
Xoractive.cpp:29:22: error: 'get_pairwise_xor' was not declared in this scope
vector <int> ans = get_pairwise_xor (v);
^~~~~~~~~~~~~~~~
Xoractive.cpp:38:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < ans2.size (); i += 2) {
~~^~~~~~~~~~~~~~
Xoractive.cpp:48:11: error: 'class std::map<int, int>' has no member named 'second'; did you mean 'cend'?
ans[ind.second] = ind.first;
^~~~~~
cend
Xoractive.cpp:48:25: error: 'class std::map<int, int>' has no member named 'first'
ans[ind.second] = ind.first;
^~~~~