ERRO: invalid types 'char[int]' for array subscript

John, there's a flaw in your sketch

The array caracter was not declared