class star
{
public:
int x;
int y;
star(int xin, int yin)
{
x=xin;
y=yin;
}
};
class collection
{
public:
int x;
collection()
{
x=0;
}
star starArray[20];
};
collection CollOfStars();
int main()
{
return 0;
}
CmNsYXNzIHN0YXIKewpwdWJsaWM6CiAgICBpbnQgeDsKICAgIGludCB5OwogICAgc3RhcihpbnQgeGluLCBpbnQgeWluKQogICAgewogICAgICAgIHg9eGluOwogICAgICAgIHk9eWluOwogICAgfQp9OwoKY2xhc3MgY29sbGVjdGlvbgp7CnB1YmxpYzoKCWludCB4OwogICAgY29sbGVjdGlvbigpCiAgICB7CiAgICAJeD0wOwogICAgfQogICAgc3RhciBzdGFyQXJyYXlbMjBdOwp9OwoKY29sbGVjdGlvbiBDb2xsT2ZTdGFycygpOwoKaW50IG1haW4oKQp7CglyZXR1cm4gMDsKfQo=
prog.cpp: In constructor ‘collection::collection()’:
prog.cpp:19:5: error: no matching function for call to ‘star::star()’
{
^
prog.cpp:19:5: note: candidates are:
prog.cpp:7:5: note: star::star(int, int)
star(int xin, int yin)
^
prog.cpp:7:5: note: candidate expects 2 arguments, 0 provided
prog.cpp:2:7: note: constexpr star::star(const star&)
class star
^
prog.cpp:2:7: note: candidate expects 1 argument, 0 provided
prog.cpp:2:7: note: constexpr star::star(star&&)
prog.cpp:2:7: note: candidate expects 1 argument, 0 provided