1234
ofstream& operator<<(ofstream& fout, const Grid& g); ostream& operator<<(ostream & out, const Grid& g);