#include <iostream> #include <bitset> using namespace std; const int N = 1000 +10; int n, m, k, x, y; bitset<N> bitarr[N]; int main() { for (auto& ba : bitarr) ba.set(); cin >> n >> m >> k; while (k --) { cin >> x >> y; ...