Good morning! I need to make a random draw from the array elements to find out if there is a boat (boat = 1). Just as at the end of 10 attempts I need to print with (x) the bombed positions successfully, shots on water (-), water (A), ships (N). It was complicated, but I have already managed to improve my program, but it still does not compile this part, please, if you can help me I am very grateful!
#include <stdio.h>
#include <stdlib.h>
int main()
{
char inimigo [4][4] = {{0,1,1,0,}
{1,0,1,0},
{1,1,0,1},
{0,0,1,0}};
char tabuleiro[4][4];
int i,j;
for (i=0; i<4; i++){
for(j=0; j<4; j++){
tabuleiro[i][j] = '.';
printf("%c", tabuleiro[i[j]);
}
printf("\n");
}
printf("Informe as coordenadas do tiro (linha/coluna):");
scanf("%d %d", &i &j);
}