C:\Users\xxx.ino: In function 'void loop()':
C:\Users\xxx.ino:65:41: warning: invalid conversion from 'char' to 'const char*' [-fpermissive]
if (String(data[j][1]) == 'g') {
^~~
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:232:0,
from sketch\iNoWa.ino.cpp:1:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/WString.h:143:16: note: initializing argument 1 of 'unsigned char String::operator==(const char*) const'
unsigned char operator == (const char *cstr) const {return equals(cstr);}
^~~~~~~~
iNoWa:98:1: error: expected '}' at end of input
}
^
exit status 1
expected '}' at end of input
Each String object takes 6 bytes of memory in addition to the content of the String (or its buffer).
For elements that seem to be mostly characters (1 byte long) this is a massive waste.
You are attempting to compare a string to a single character. The comparison needs to be between strings - put regular double quote marks around the letter "g" instead of single quotes 'g' if you really need to use a string for a single character comparison.