func_code_string: #include <bits/stdc++.h>   char map[1005][1005];   int main() {     int n, m;     scanf( %d %d , &n, &m);     for (int r = 0; r < n; r++) scanf( %s , map[r]);     int row[1005] = {0};     int col[1005] = {0};     for (int r = 0; r < n; r++) {       int count = 0;       for (int c = 0; c < m; c++)         if (map[r][c] ==  * ) count++;       row[r] = count;     }     for (int c = 0; c < m; c++) {       int count = 0;       for (int r = 0; r < n; r++)         if (map[r][c] ==  * ) count++;       col[c] = count;     }     long long answer = 0;     for (int r = 0; r < n; r++)       for (int c = 0; c < m; c++)         if (map[r][c] ==  * ) answer += (row[r] - 1) * (col[c] - 1);     printf( %I64d n , answer);     return 0;   }   