prog.cpp:14:30: error: invalid use of incomplete type ‘class Oblast’
class Megapolis : public Oblast
^
prog.cpp:4:11: error: forward declaration of ‘class Oblast’
class Oblast
^
prog.cpp:34:5: error: expected ‘}’ at end of input
}
^
prog.cpp: In member function ‘int Oblast::main()’:
prog.cpp:30:23: error: ‘strcpy’ was not declared in this scope
strcpy(A.name = 10);
^
prog.cpp: At global scope:
prog.cpp:34:5: error: expected unqualified-id at end of input
}
^