Particle Photon: Am I Using it Correctly?

so the project uses a keypad where if you type a certain number code (in this case 4357) you click on the button, and the particle photon sends a message that you Need Help. However, I keep getting an error and I don't know why.

#include <Keypad.h>

const byte ROWS = 4; //four rows
const byte COLS = 4; //four columns

//defining symbol on the buttons of keypad
char hexaKeys[ROWS][COLS] = {
{ '1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};

byte rowPins[ROWS] = {9, 8, 7, 6};
byte colPins[COLS] = {5, 4, 3, 2)' //connection to the column pinouts of keypad

//initialize an instance of class NewKeypad
Keypad customKeypad = Keypad ( makeupKeymap (hexaKeys), rowPins, colPins, ROWS, COLS);

int count=0;
String code="";
String help= "4357";

const int rbutton = 8;
const int gLED = 9;

void setup() {

pinMode(0, INPUT);
pinMode(7, OUTPUT);
Serial.begin(9600);

}

void loop()
{
char customKey = customKeypad.getKey();

if(customKey){
count=count+1;
if(cout==5)
{count=0; code"";}

code=code+String(customKey);
Serial.Publish(code);
}

if(code==help)
{
Particle.publish ("Needhelp");
delay(1000);
}
else
{
Particle.publish("Needhelp");
}

};

what error?

here is your error:

byte colPins[COLS] = {5, 4, 3, 2)'

here is another:

if(customKey){
count=count+1;

here is one more:

};

ieee488:
what error?

it highlights the Particle.photon ("Needhelp"); section i dont know why

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. If your browser doesn't show the posting toolbar then you can just manually add the code tags:
[code]``[color=blue]// your code is here[/color]``[/code]
Using code tags and other important information is explained in the How to use this forum post. Please read it.

Please always do a Tools > Auto Format on your code before posting it. This will make it easier for you to spot bugs and make it easier for us to read. If you're using the Arduino Web Editor you will not have access to this useful tool but it's still unacceptable to post poorly formatted code. I recommend you to use the standard IDE instead.

When your code requires a library that's not included with the Arduino IDE please always post a link (using the chain link icon on the toolbar to make it clickable) to where you downloaded that library from or if you installed it using Library Manger(Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.

dankwiafu:
i dont know why

That's because you didn't bother to read the actual error output. The compiler gives you a bunch of helpful information on the cause of an error but if you're too lazy to read it then you're not going to get anywhere with programming and electronics. Do you see that black window at the bottom of the Arduino IDE window? After you encounter an error scroll that window all the way to the top (it helps to resize it larger) then start reading from the top. The error output will provide line numbers and the contents of that line of code where the error was encountered. If you don't understand it then you can google the relevant parts of the error message to find lots of helpful information. If you're still stuck then you can come here to the forum and ask for help but you need to provide us enough information:
When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a forum post USING CODE TAGS (</> button on the toolbar).

This is the Arduino forum, not the Particle forum. They are down the road a ways.