func_code_string: #include <bits/stdc++.h>   using namespace std;   int n = 0, m = 0, k;   vector<string> a;   int CountSpiders(int j) {     int sum = 0;     int jR = j, jL = j;     for (int i = 1; i < n; ++i) {       if (!(i % 2) && a[i][j] ==  U ) ++sum;       if (jR > 0) {         --jR;         if (a[i][jR] ==  R ) ++sum;       }       if (jL < m - 1) {         ++jL;         if (a[i][jL] ==  L ) ++sum;       }     }     return sum;   }   int main() {     cin >> n >> m >> k;     cin.ignore(100,   n );     a.resize(n);     for (int i = 0; i < n; ++i) getline(cin, a[i]);     for (int j = 0; j < m; ++j) {       cout << CountSpiders(j) <<    ;     }   }   