func_code_string: #include <bits/stdc++.h>   using namespace std;   int n, m, k, a[1003][1003], row[1003], col[1003];   int main() {     scanf( %d%d%d , &n, &m, &k);     int i, j;     for (i = 1; i <= n; i++)       for (j = 1; j <= m; j++) scanf( %d , &a[i][j]);     for (i = 0; i <= n; i++) row[i] = i;     for (i = 0; i <= m; i++) col[i] = i;     char s;     int x, y;     for (i = 0; i < k; i++) {       scanf(  n%c %d %d , &s, &x, &y);       if (s ==  g ) printf( %d n , a[row[x]][col[y]]);       if (s ==  c ) {         j = col[x];         col[x] = col[y];         col[y] = j;       }       if (s ==  r ) {         j = row[x];         row[x] = row[y];         row[y] = j;       }     }     return 0;   }   