func_code_string: #include <bits/stdc++.h>   using namespace std;   int n, m;   int table[1000][1000];   int main() {     int k = 0;     scanf( %d %d %d , &n, &m, &k);     for (int i = 0; i < n; ++i) {       for (int j = 0; j < m; ++j) {         scanf( %d , &table[i][j]);       }     }     while (k) {       char command;       int x, y;       scanf(  %c %d %d , &command, &x, &y);       if (command ==  g )         printf( %d n , table[x - 1][y - 1]);       else if (command ==  c )         for (int i = 0; i < n; ++i) swap(table[i][x - 1], table[i][y - 1]);       else         for (int i = 0; i < m; ++i) swap(table[x - 1][i], table[y - 1][i]);       k--;     }     return 0;   }   