After you wake in a dark room, you see a rectangular grid of lights with corresponding switches. You decide to use a coordinate system with the bottom left light representing (1,1) and the coordinates increasing as you go up (y direction) and to the right (x direction). The grids are identical in that flipping the switch at (a,b) toggles (turns from off to on or from on to off) the light at (a,b) as well as the lights in the same column or same row as (a,b).
Your input will be a rectangular grid of two distinct characters representing on and off (I use 1 and 0, respectively). Also, a part of the input will be a series of at least one coordinate pair (with whatever format and separation you want) that will represent switches that you flip.
The output will be the same grid, with the "flip" applied at each of the coordinate pairs that were given as input. You may choose how to format your input, though the output must be a grid, not an array.
Sample input 1
111111 111111 111111 111111 (3,2)
Sample output 1
110111 110111 000000 110111
Sample input 2
01101 10100 00010 11111 10110 (1,1), (5,5)
Sample output 2
00010 00101 10011 01110 01000
Sample input 3
Sample output 3
Sample input 4
00000 11111 00000 11111 (2,3), (2,3)
Sample output 4
00000 11111 00000 11111
This is code golf. Standard rules apply. Shortest code in bytes wins.