Xoractive.cpp: In function 'std::vector<int> sub(std::vector<int>, std::vector<int>)':
Xoractive.cpp:4:5: error: 'map' was not declared in this scope
4 | map<int,int>m;
| ^~~
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:4:9: error: expected primary-expression before 'int'
4 | map<int,int>m;
| ^~~
Xoractive.cpp:5:17: error: 'm' was not declared in this scope
5 | for(int i:a)m[i]++;
| ^
Xoractive.cpp:6:17: error: 'm' was not declared in this scope
6 | for(int j:b)m[j]--;
| ^
Xoractive.cpp:8:24: error: 'm' was not declared in this scope
8 | for(pair<int,int>p:m) {
| ^
Xoractive.cpp: In function 'std::vector<int> guess(int)':
Xoractive.cpp:14:5: error: 'map' was not declared in this scope
14 | map<int,int>m;
| ^~~
Xoractive.cpp:14:5: note: 'std::map' is defined in header '<map>'; did you forget to '#include <map>'?
Xoractive.cpp:14:9: error: expected primary-expression before 'int'
14 | map<int,int>m;
| ^~~
Xoractive.cpp:28:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | for(int j=0;j<second.size();j++) {
| ~^~~~~~~~~~~~~~
Xoractive.cpp:30:13: error: 'm' was not declared in this scope
30 | m[x]|=(1<<i);
| ^
Xoractive.cpp:34:24: error: 'm' was not declared in this scope
34 | for(pair<int,int>p:m) {
| ^