79572022

Date: 2025-04-13 20:34:30
Score: 1.5
Natty:
Report link

After @Eljay's suggestion of using std::array instead of a C-style array, I changed it and got a new error of Globals::MAX_COL not being a constant variable.

Hence, after changing back to the C-style array, I changed the variable MAX_COL in the namespace to a constant and now it compiles properly.

New Code: namespaces.h

#ifndef namespaces_h
#define namespaces_h

namespace Globals {
    const int MAX_COL = 10;
};

#endif
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Eljay's
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: ImDarkk