you can modify your code like this
t1= t2.Clone();
t1.Columns.Add("Matching");
foreach(DataRow r in t1.Rows)
{
n = tags.Select("Title= '" + r["Title"] + "'");
foreach (DataRow roo in n)
{
t1.ImportRow(roo);
}
foreach (DataRow roo in t1)
{
roo["Matching"] = getscore();
}
}
or to add a column to a data table you can follow the below code
DataTable addNewColumn(DataTable t1)
{
t1.Columns.Add("qty");
int i = 1;
foreach (DataRow dr1 in t1.Rows)
{
dr1["qty"] = i++;
}
return t1;
}