title: How to check rows and columns for matching elements
body: <p>The dimensions m and n (1 &lt;= m, n &lt;= 100) of the matrix A are entered by the keyboard, and then the elements of the matrix. The matrix contains only 1 or 0 as its own elements. Write a program that will print how many pairs of indexes (i, j) there are that only consist of ones in the i-row and j-column and print all the pairs (i, j) for which the requearements met. When printing, the indexes i and j start at 0.</p>
  
  <p>Example:</p>
  
  <p>Input: </p>
  
  <p>4 3</p>
  
  <p>1 1 1 1</p>
  
  <p>1 0 1 1</p>
  
  <p>1 0 1 1</p>
  
  <p>Output: </p>
  
  <p>(0, 0)</p>
  
  <p>(2, 0)</p>
  
  <p>(3, 0)</p>