#include <iostream>
#include <cstdlib>
class CSDLGameObject
{
public:
CSDLGameObject() {m_PosX = 0;
m_PosY = 0;}
void print()
{
std::cout << "Test";
}
protected:
int m_PosX;
int m_PosY;
};
class CGoombas : public CSDLGameObject
{
public:
CGoombas();
};
CGoombas::CGoombas() : CSDLGameObject() //Here is the error
{
m_PosX = 400;
m_PosY = 300;
}
int main()
{
CGoombas goombas;
goombas.print();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0ZGxpYj4KY2xhc3MgQ1NETEdhbWVPYmplY3QKewogICAgcHVibGljOgogICAgICAgIENTRExHYW1lT2JqZWN0KCkge21fUG9zWCA9IDA7CiAgICAgICAgICAgICAgICAgICAgICAgICAgbV9Qb3NZID0gMDt9CgkJdm9pZCBwcmludCgpCgkJewoJCQlzdGQ6OmNvdXQgPDwgIlRlc3QiOwkKCQl9CgkKICAgIHByb3RlY3RlZDoKICAgICAgIGludCBtX1Bvc1g7CiAgICAgICBpbnQgbV9Qb3NZOwoKfTsKCmNsYXNzIENHb29tYmFzIDogcHVibGljIENTRExHYW1lT2JqZWN0CnsKICAgIHB1YmxpYzoKICAgICAgICBDR29vbWJhcygpOyAKfTsKCkNHb29tYmFzOjpDR29vbWJhcygpIDogQ1NETEdhbWVPYmplY3QoKSAvL0hlcmUgaXMgdGhlIGVycm9yCnsKICAgIG1fUG9zWCA9IDQwMDsKICAgIG1fUG9zWSA9IDMwMDsKfQoKaW50IG1haW4oKQp7CglDR29vbWJhcyBnb29tYmFzOwoJCglnb29tYmFzLnByaW50KCk7CgkKCXJldHVybiAwOwkKfQ==