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