Can you explain what you want to do?
The first error is that there is no constant for the size of the array.
For example:
const int tab1Len = 100000
The second thing is that when adding another element to an array, you should use the next elements of that array:
I don't understand why you want to put a element in an input number that someone will give you in the console.
If you want to do this, better think is create something like:
struct nameOfYourStruct {
char val;
int pos;
};
if you explain what you mean, maybe I can help you better.
If you want for example put '1' to 'input' element of array, first you need to initialize this array:
for(int i = 0; i < lenArray; i++)
array[i] = 0;