class Solution{ public: int numSpecial(vector> &mat){ int ans = 0; int m = mat.size(); int n = mat[0].size(); for(int row = 0;row