prog.cpp:6:2: error: ‘cout’ does not name a type
cout<<"this is my bank"<<endl;
^~~~
prog.cpp:13:13: error: ‘A’ has not been declared
void showA(A &x)
^
prog.cpp: In member function ‘void b::showA(int&)’:
prog.cpp:15:17: error: request for member ‘a’ in ‘x’, which is of non-class type ‘int’
cout<<"a="<<x.a;
^
prog.cpp: In function ‘int main()’:
prog.cpp:22:10: error: no matching function for call to ‘b::showA()’
d.showA();
^
prog.cpp:13:7: note: candidate: void b::showA(int&)
void showA(A &x)
^~~~~
prog.cpp:13:7: note: candidate expects 1 argument, 0 provided