/in/foo.cc: In function 'int main()':
/in/foo.cc:11:27: error: invalid types 'int[int]' for array subscript
if(game[a[i%na][b[i%nb]]==1) ca++;
^
/in/foo.cc:11:31: error: expected ']' before ')' token
if(game[a[i%na][b[i%nb]]==1) ca++;
^
/in/foo.cc:12:27: error: invalid types 'int[int]' for array subscript
if(game[a[i%na][b[i%nb]]==-1) cb++;
^
/in/foo.cc:12:32: error: expected ']' before ')' token
if(game[a[i%na][b[i%nb]]==-1) cb++;
^
/in/foo.cc:4:29: warning: unused variable 'ra' [-Wunused-variable]
int n,na,nb,a[201],b[201],ra[201],rb[201],ca=0,cb=0;
^~
/in/foo.cc:4:37: warning: unused variable 'rb' [-Wunused-variable]
int n,na,nb,a[201],b[201],ra[201],rb[201],ca=0,cb=0;
^~