Xoractive.cpp: In function 'std::vector<int> guess(int)':
Xoractive.cpp:23:12: error: expected ']' before ':' token
23 | for(int [x:y]:res){
| ^
| ]
Xoractive.cpp:23:10: error: structured binding declaration cannot have type 'int'
23 | for(int [x:y]:res){
| ^
Xoractive.cpp:23:10: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
Xoractive.cpp:23:10: error: only 1 name provided for structured binding
Xoractive.cpp:23:10: note: while 'std::pair<const int, int>' decomposes into 2 elements
Xoractive.cpp:24:13: error: 'y' was not declared in this scope
24 | ans[y]=x;
| ^