//Nithin Sivakumaran
//March 13 2020
//Int5
//Enloe
//Potter
#include 
#include 
#include 
#include 
#include 
using namespace std;

void clear(vector  &a){

    int length=a.size();
    for (int i=0; i &a){

    vector  variables;
    string one="1";
    string two="2";
    string savegrid[6][6];
    string grid[6][6];
    int finalgrid[4][4];
    for(int i=0; i<6; i++){
        for(int j=0; j<6; j++){
            grid[i][j]="1";
        }
    }
    grid[0][1]="A";
    grid[0][2]="A";
    grid[0][3]="~A";
    grid[0][4]="~A";
    grid[1][0]="B";
    grid[2][0]="B";
    grid[3][0]="~B";
    grid[4][0]="~B";
    grid[5][1]="~C";
    grid[5][2]="C";
    grid[5][3]="C";
    grid[5][4]="~C";
    grid[1][5]="~D";
    grid[2][5]="D";
    grid[3][5]="D";
    grid[4][5]="~D";
    for(int i=0 ;i<4; i++){
        for(int j=0; j<4;j++){
            finalgrid[i][j]=0;
        }
    }
    for(int x=0; x terms;
    ifstream myfile("F:\\3int.txt");
    string line,term;
    stringstream ss;
    for(int i=0; i<5; i++){
        getline(myfile,line);
        ss<