int main() { int i,j; int basis[k]; //vector of generators int word=0; int minweight=k; //fill basis for(i=0;i<(1<