picmirc:
But how to declare array?"character []" or "character" [5]? I've tried both ways and always gives error
Neither. If you want do declare caracter as an array of five chars, you would put this:
char caracter[5];
You'll also need to rethink your strategy for reading data from the serial port. Serial.read() will return a single character, not all 5 at once, so you will need to call it multiple times to get all your values. It would also be a good idea to not try and read in serial data when there is none. This is where Serial.available() comes in handy. Also, assuming you are using the serial monitor, typing "1" into it will not send 1, it will send '1'.