a = atoi(myInts);
You should check for a special character button like * or # and if any of those are pressed it convert the array to an int. If those are NOT pressed, use a variable (int counter;) to add number to the array.
Example.
if(press != '*' || press != '#') {
myInts[counter++] = press;
}
else {
a = atoi(myInts);
}