func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, m;     char c;     cin >> n >> m;     vector<int> rows(n), cols(m);     vector<vector<bool> > A(n);     for (int i = 0; i < n; ++i)       for (int j = 0; j < m; ++j) {         cin >> c;         if (c ==  * ) {           A[i].push_back(true);           rows[i]++;           cols[j]++;         } else           A[i].push_back(false);       }     long long res = 0;     for (int i = 0; i < n; ++i)       for (int j = 0; j < m; ++j)         if (A[i][j]) res += (cols[j] - 1) * (rows[i] - 1);     cout << res;     return 0;   }   