You just missed the curly brackets in the second loop and the new line after it.
do you mean:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <iostream>
int main(){
char grid[7][6];
int i;
int j;
for (i = 0; i <7; i++){
for (j = 0; j < 6; j++){
grid[i][j] = 'O';
std::cout << grid[i][j];
}
std::cout<<endl;
}
}