Create lab2.cpp

just q for i = n[0], n[0], t[0]