Language: C

#include <stdio.h>

int t[7][7]={{},{
    {0,0,3,5,2,4,0},
    {0,4,0,1,6,3,0},
    {0,2,6,0,1,5,0},
    {0,5,1,0,6,2,0},
    {0,3,0,6,1,4,0},
    {0,0,4,2,5,3,0}
    }};

int main(void){
    int i,j,n,x,y,dice[10];
    
    for(i=0;i<6;i++){
        scanf("%d",&dice[i])
    }
    
    scanf("%d",&n);
    
    for(i=0;i<n;i++){
            scanf("%d %d",&x,&y);
            printf("%d\n",dice[t[x][y]]);
        }
    }
    return 0;
}


Compiler output:
main.c:4:5: warning: braces around scalar initializer
    4 |     {0,0,3,5,2,4,0},
      |     ^
main.c:4:5: note: (near initialization for 't[1][0]')
main.c:4:8: warning: excess elements in scalar initializer
    4 |     {0,0,3,5,2,4,0},
      |        ^
main.c:4:8: note: (near initialization for 't[1][0]')
main.c:4:10: warning: excess elements in scalar initializer
    4 |     {0,0,3,5,2,4,0},
      |          ^
main.c:4:10: note: (near initialization for 't[1][0]')
main.c:4:12: warning: excess elements in scalar initializer
    4 |     {0,0,3,5,2,4,0},
      |            ^
main.c:4:12: note: (near initialization for 't[1][0]')
main.c:4:14: warning: excess elements in scalar initializer
    4 |     {0,0,3,5,2,4,0},
      |              ^
main.c:4:14: note: (near initialization for 't[1][0]')
main.c:4:16: warning: excess elements in scalar initializer
    4 |     {0,0,3,5,2,4,0},
      |                ^
main.c:4:16: note: (near initialization for 't[1][0]')
main.c:4:18: warning: excess elements in scalar initializer
    4 |     {0,0,3,5,2,4,0},
      |                  ^
main.c:4:18: note: (near initialization for 't[1][0]')
main.c:5:5: warning: braces around scalar initializer
    5 |     {0,4,0,1,6,3,0},
      |     ^
main.c:5:5: note: (near initialization for 't[1][1]')
main.c:5:8: warning: excess elements in scalar initializer
    5 |     {0,4,0,1,6,3,0},
      |        ^
main.c:5:8: note: (near initialization for 't[1][1]')
main.c:5:10: warning: excess elements in scalar initializer
    5 |     {0,4,0,1,6,3,0},
      |          ^
main.c:5:10: note: (near initialization for 't[1][1]')
main.c:5:12: warning: excess elements in scalar initializer
    5 |     {0,4,0,1,6,3,0},
      |            ^
main.c:5:12: note: (near initialization for 't[1][1]')
main.c:5:14: warning: excess elements in scalar initializer
    5 |     {0,4,0,1,6,3,0},
      |              ^
main.c:5:14: note: (near initialization for 't[1][1]')
main.c:5:16: warning: excess elements in scalar initializer
    5 |     {0,4,0,1,6,3,0},
      |                ^
main.c:5:16: note: (near initialization for 't[1][1]')
main.c:5:18: warning: excess elements in scalar initializer
    5 |     {0,4,0,1,6,3,0},
      |                  ^
main.c:5:18: note: (near initialization for 't[1][1]')
main.c:6:5: warning: braces around scalar initializer
    6 |     {0,2,6,0,1,5,0},
      |     ^
main.c:6:5: note: (near initialization for 't[1][2]')
main.c:6:8: warning: excess elements in scalar initializer
    6 |     {0,2,6,0,1,5,0},
      |        ^
main.c:6:8: note: (near initialization for 't[1][2]')
main.c:6:10: warning: excess elements in scalar initializer
    6 |     {0,2,6,0,1,5,0},
      |          ^
main.c:6:10: note: (near initialization for 't[1][2]')
main.c:6:12: warning: excess elements in scalar initializer
    6 |     {0,2,6,0,1,5,0},
      |            ^
main.c:6:12: note: (near initialization for 't[1][2]')
main.c:6:14: warning: excess elements in scalar initializer
    6 |     {0,2,6,0,1,5,0},
      |              ^
main.c:6:14: note: (near initialization for 't[1][2]')
main.c:6:16: warning: excess elements in scalar initializer
    6 |     {0,2,6,0,1,5,0},
      |                ^
main.c:6:16: note: (near initialization for 't[1][2]')
main.c:6:18: warning: excess elements in scalar initializer
    6 |     {0,2,6,0,1,5,0},
      |                  ^
main.c:6:18: note: (near initialization for 't[1][2]')
main.c:7:5: warning: braces around scalar initializer
    7 |     {0,5,1,0,6,2,0},
      |     ^
main.c:7:5: note: (near initialization for 't[1][3]')
main.c:7:8: warning: excess elements in scalar initializer
    7 |     {0,5,1,0,6,2,0},
      |        ^
main.c:7:8: note: (near initialization for 't[1][3]')
main.c:7:10: warning: excess elements in scalar initializer
    7 |     {0,5,1,0,6,2,0},
      |          ^
main.c:7:10: note: (near initialization for 't[1][3]')
main.c:7:12: warning: excess elements in scalar initializer
    7 |     {0,5,1,0,6,2,0},
      |            ^
main.c:7:12: note: (near initialization for 't[1][3]')
main.c:7:14: warning: excess elements in scalar initializer
    7 |     {0,5,1,0,6,2,0},
      |              ^
main.c:7:14: note: (near initialization for 't[1][3]')
main.c:7:16: warning: excess elements in scalar initializer
    7 |     {0,5,1,0,6,2,0},
      |                ^
main.c:7:16: note: (near initialization for 't[1][3]')
main.c:7:18: warning: excess elements in scalar initializer
    7 |     {0,5,1,0,6,2,0},
      |                  ^
main.c:7:18: note: (near initialization for 't[1][3]')
main.c:8:5: warning: braces around scalar initializer
    8 |     {0,3,0,6,1,4,0},
      |     ^
main.c:8:5: note: (near initialization for 't[1][4]')
main.c:8:8: warning: excess elements in scalar initializer
    8 |     {0,3,0,6,1,4,0},
      |        ^
main.c:8:8: note: (near initialization for 't[1][4]')
main.c:8:10: warning: excess elements in scalar initializer
    8 |     {0,3,0,6,1,4,0},
      |          ^
main.c:8:10: note: (near initialization for 't[1][4]')
main.c:8:12: warning: excess elements in scalar initializer
    8 |     {0,3,0,6,1,4,0},
      |            ^
main.c:8:12: note: (near initialization for 't[1][4]')
main.c:8:14: warning: excess elements in scalar initializer
    8 |     {0,3,0,6,1,4,0},
      |              ^
main.c:8:14: note: (near initialization for 't[1][4]')
main.c:8:16: warning: excess elements in scalar initializer
    8 |     {0,3,0,6,1,4,0},
      |                ^
main.c:8:16: note: (near initialization for 't[1][4]')
main.c:8:18: warning: excess elements in scalar initializer
    8 |     {0,3,0,6,1,4,0},
      |                  ^
main.c:8:18: note: (near initialization for 't[1][4]')
main.c:9:5: warning: braces around scalar initializer
    9 |     {0,0,4,2,5,3,0}
      |     ^
main.c:9:5: note: (near initialization for 't[1][5]')
main.c:9:8: warning: excess elements in scalar initializer
    9 |     {0,0,4,2,5,3,0}
      |        ^
main.c:9:8: note: (near initialization for 't[1][5]')
main.c:9:10: warning: excess elements in scalar initializer
    9 |     {0,0,4,2,5,3,0}
      |          ^
main.c:9:10: note: (near initialization for 't[1][5]')
main.c:9:12: warning: excess elements in scalar initializer
    9 |     {0,0,4,2,5,3,0}
      |            ^
main.c:9:12: note: (near initialization for 't[1][5]')
main.c:9:14: warning: excess elements in scalar initializer
    9 |     {0,0,4,2,5,3,0}
      |              ^
main.c:9:14: note: (near initialization for 't[1][5]')
main.c:9:16: warning: excess elements in scalar initializer
    9 |     {0,0,4,2,5,3,0}
      |                ^
main.c:9:16: note: (near initialization for 't[1][5]')
main.c:9:18: warning: excess elements in scalar initializer
    9 |     {0,0,4,2,5,3,0}
      |                  ^
main.c:9:18: note: (near initialization for 't[1][5]')
main.c: In function 'main':
main.c:16:29: error: expected ';' before '}' token
   16 |         scanf("%d",&dice[i])
      |                             ^
      |                             ;
   17 |     }
      |     ~                        
main.c: At top level:
main.c:26:5: error: expected identifier or '(' before 'return'
   26 |     return 0;
      |     ^~~~~~
main.c:27:1: error: expected identifier or '(' before '}' token
   27 | }
      | ^