update mastercard.cpp

added incremental addition to var 'n' so that the index of the vector will change through each iteration of the loop