mouse.cpp:14:5: error: 'ii' was not declared in this scope
set<ii> tested;
^~
mouse.cpp:14:5: note: suggested alternative: 'fi'
set<ii> tested;
^~
fi
mouse.cpp:14:7: error: template argument 1 is invalid
set<ii> tested;
^
mouse.cpp:14:7: error: template argument 2 is invalid
mouse.cpp:14:7: error: template argument 3 is invalid
mouse.cpp: In function 'void solve(int)':
mouse.cpp:31:28: error: request for member 'count' in 'tested', which is of non-class type 'int'
} while (i==j && !tested.count(ii(i,j));
^~~~~
mouse.cpp:31:34: error: 'ii' was not declared in this scope
} while (i==j && !tested.count(ii(i,j));
^~
mouse.cpp:31:34: note: suggested alternative: 'i'
} while (i==j && !tested.count(ii(i,j));
^~
i
mouse.cpp:31:42: error: expected ')' before ';' token
} while (i==j && !tested.count(ii(i,j));
^
mouse.cpp:37:11: error: request for member 'insert' in 'tested', which is of non-class type 'int'
tested.insert(ii(i,j));
^~~~~~
mouse.cpp:40:11: error: request for member 'clear' in 'tested', which is of non-class type 'int'
tested.clear();
^~~~~