Language: C

#include<stdio.h>
#define N 8
char Q[N][N];
void putpoint1(x,y){
  int i,j;
  for(i=1;i<N-x;i++){
    for(j=1;j<N-y;j++){
      Q[x+i][j+y]='???';
  }
  for(j=1;y-j>=0;j++){
      Q[x+i][y-j]='???';
}
}
for(i=1;x-i>=0;i++){
    for(j=1;j<N-y;j++){
      Q[x-i][j+y]='???';
  }
  for(j=1;y-j>=0;j--){
      Q[x-i][y-j]='???';
}
}
}

void putpoint2(x,y){
  int i;
  for(i=1;x-i>=0;i++){
    Q[x-1][y]='???';
  }
  for(i=1;x+1<N;i++){
    Q[x+1][y]='???';
  }
   for(i=1;x-i>=0;i++){
    Q[x][y-1]='???';
  }
  for(i=1;x+1<N;i++){
    Q[x+1][y+1]='???';
  }
}

int main(){
  int k,i,j,x,y;
  scanf("%d",&k);
  for(i=0;i<N;i++){
    for(j=0;j<N;j++){
    Q[i][j]=' ';
  }
  }
  for(i=0;i<k;i++{
    scanf("%d %d",x,y);
    Q[x][y]='Q';
    putpoint1(x,y);
    putpoint2(x,y);
  }
  for(j=0;i<N;j++){
    for(i=0;i<N;i++){
      if(Q[i][j]!='Q' ||Q[i][j]!='???'){
         putpoint1(x,y);
         putpoint2(x,y);
      }
  }
  }
for(i=0;i<N;i++){
  for(j=0;i<N;j++){
    print("%c",Q[i][j]);
  }
  printf("\n");
}
}

Compiler output:
main.c: In function 'putpoint1':
main.c:4:6: error: type of 'x' defaults to 'int' [-Wimplicit-int]
    4 | void putpoint1(x,y){
      |      ^~~~~~~~~
main.c:4:6: error: type of 'y' defaults to 'int' [-Wimplicit-int]
main.c:8:21: warning: trigraph ??' ignored, use -trigraphs to enable [-Wtrigraphs]
    8 |       Q[x+i][j+y]='???';
main.c:8:19: warning: multi-character character constant [-Wmultichar]
    8 |       Q[x+i][j+y]='???';
      |                   ^~~~~
main.c:8:19: warning: overflow in conversion from 'int' to 'char' changes value from '4144959' to '63' [-Woverflow]
main.c:11:21: warning: trigraph ??' ignored, use -trigraphs to enable [-Wtrigraphs]
   11 |       Q[x+i][y-j]='???';
main.c:11:19: warning: multi-character character constant [-Wmultichar]
   11 |       Q[x+i][y-j]='???';
      |                   ^~~~~
main.c:11:19: warning: overflow in conversion from 'int' to 'char' changes value from '4144959' to '63' [-Woverflow]
main.c:16:21: warning: trigraph ??' ignored, use -trigraphs to enable [-Wtrigraphs]
   16 |       Q[x-i][j+y]='???';
main.c:16:19: warning: multi-character character constant [-Wmultichar]
   16 |       Q[x-i][j+y]='???';
      |                   ^~~~~
main.c:16:19: warning: overflow in conversion from 'int' to 'char' changes value from '4144959' to '63' [-Woverflow]
main.c:19:21: warning: trigraph ??' ignored, use -trigraphs to enable [-Wtrigraphs]
   19 |       Q[x-i][y-j]='???';
main.c:19:19: warning: multi-character character constant [-Wmultichar]
   19 |       Q[x-i][y-j]='???';
      |                   ^~~~~
main.c:19:19: warning: overflow in conversion from 'int' to 'char' changes value from '4144959' to '63' [-Woverflow]
main.c: In function 'putpoint2':
main.c:24:6: error: type of 'x' defaults to 'int' [-Wimplicit-int]
   24 | void putpoint2(x,y){
      |      ^~~~~~~~~
main.c:24:6: error: type of 'y' defaults to 'int' [-Wimplicit-int]
main.c:27:17: warning: trigraph ??' ignored, use -trigraphs to enable [-Wtrigraphs]
   27 |     Q[x-1][y]='???';
main.c:27:15: warning: multi-character character constant [-Wmultichar]
   27 |     Q[x-1][y]='???';
      |               ^~~~~
main.c:27:15: warning: overflow in conversion from 'int' to 'char' changes value from '4144959' to '63' [-Woverflow]
main.c:30:17: warning: trigraph ??' ignored, use -trigraphs to enable [-Wtrigraphs]
   30 |     Q[x+1][y]='???';
main.c:30:15: warning: multi-character character constant [-Wmultichar]
   30 |     Q[x+1][y]='???';
      |               ^~~~~
main.c:30:15: warning: overflow in conversion from 'int' to 'char' changes value from '4144959' to '63' [-Woverflow]
main.c:33:17: warning: trigraph ??' ignored, use -trigraphs to enable [-Wtrigraphs]
   33 |     Q[x][y-1]='???';
main.c:33:15: warning: multi-character character constant [-Wmultichar]
   33 |     Q[x][y-1]='???';
      |               ^~~~~
main.c:33:15: warning: overflow in conversion from 'int' to 'char' changes value from '4144959' to '63' [-Woverflow]
main.c:36:19: warning: trigraph ??' ignored, use -trigraphs to enable [-Wtrigraphs]
   36 |     Q[x+1][y+1]='???';
main.c:36:17: warning: multi-character character constant [-Wmultichar]
   36 |     Q[x+1][y+1]='???';
      |                 ^~~~~
main.c:36:17: warning: overflow in conversion from 'int' to 'char' changes value from '4144959' to '63' [-Woverflow]
main.c: In function 'main':
main.c:48:18: error: expected ')' before '{' token
   48 |   for(i=0;i<k;i++{
      |      ~           ^
      |                  )
main.c:56:36: warning: trigraph ??' ignored, use -trigraphs to enable [-Wtrigraphs]
   56 |       if(Q[i][j]!='Q' ||Q[i][j]!='???'){
main.c:56:34: warning: multi-character character constant [-Wmultichar]
   56 |       if(Q[i][j]!='Q' ||Q[i][j]!='???'){
      |                                  ^~~~~
main.c:68:1: error: expected expression before '}' token
   68 | }
      | ^