well, i can tell you some problems with it.
your string variables make a reeference to an array but it has a value of zero.
int i;
std::string string1[i]; //error: i is not initiliazed, and assumed to be zero
int j = 1;
std::string string2[j]; //no error. arrays must have a value of 1 or greater
you variable nome, is referenced but does not have a definition anywhere. ambiguous
variables are not supported.
ch cannot determine it's value. in order to alleviate this you have to get the value of n, before ch is define or initialize it as one and replace it later in the code.
if you fix those errors it should work.