func_code_string: #include <bits/stdc++.h>   const int N = 1e3 + 5;   using namespace std;   int main() {     ios::sync_with_stdio(false);     int arr[N][N], str, sve, k, n[N], m[N], i, j, x, y;     char ch;     cin >> str >> sve >> k;     for (i = 1; i <= str; i++)       for (j = 1; j <= sve; j++) cin >> arr[i][j];     for (i = 1; i <= N; i++) n[i] = m[i] = i;     while (k--) {       cin >> ch >> x >> y;       if (ch ==  r )         swap(n[x], n[y]);       else if (ch ==  c )         swap(m[x], m[y]);       else         cout << arr[n[x]][m[y]] << endl;     }   }   