#include <iostream>
#include <fstream>
using namespace std;
class Cell {
private:
bool readOnly;
int value;
public:
Cell(int value, bool readOnly) {
this->value = value;
this->readOnly = readOnly;
}
bool isReadOnly() {return readOnly;}
int getValue() const {return value;}
void setValue(int value) {if (!readOnly) this->value = value;}
// ostream& operator << (ostream& out, const Cell &rhs);
};
ostream& operator << (ostream &out, const Cell &rhs) {
out << " " << rhs.getValue() << " ";
return out;
}
void getFilename(char* filename) {
cout << "Enter source file: ";
cin >> filename;
}
int main() {
char* filename;
//getFilename(filename);
//Board *board = new Board(filename);
Cell cell(0, true);
cout << cell << endl;
//delete board;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8ZnN0cmVhbT4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmNsYXNzIENlbGwgewpwcml2YXRlOgoJYm9vbCByZWFkT25seTsKCWludCB2YWx1ZTsKcHVibGljOgoJQ2VsbChpbnQgdmFsdWUsIGJvb2wgcmVhZE9ubHkpIHsKCQl0aGlzLT52YWx1ZSA9IHZhbHVlOwoJCXRoaXMtPnJlYWRPbmx5ID0gcmVhZE9ubHk7Cgl9CgoJYm9vbCBpc1JlYWRPbmx5KCkge3JldHVybiByZWFkT25seTt9CglpbnQgZ2V0VmFsdWUoKSBjb25zdCB7cmV0dXJuIHZhbHVlO30KCXZvaWQgc2V0VmFsdWUoaW50IHZhbHVlKSB7aWYgKCFyZWFkT25seSkgdGhpcy0+dmFsdWUgPSB2YWx1ZTt9Ci8vCW9zdHJlYW0mIG9wZXJhdG9yIDw8IChvc3RyZWFtJiBvdXQsIGNvbnN0IENlbGwgJnJocyk7Cn07Cgpvc3RyZWFtJiBvcGVyYXRvciA8PCAob3N0cmVhbSAmb3V0LCBjb25zdCBDZWxsICZyaHMpIHsKCW91dCA8PCAiICIgPDwgcmhzLmdldFZhbHVlKCkgPDwgIiAiOwoJCglyZXR1cm4gb3V0Owp9Cgp2b2lkIGdldEZpbGVuYW1lKGNoYXIqIGZpb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