Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] array must be initialized with a brace-enclosed initializer #3

Closed
Nike-rgb opened this issue Feb 13, 2021 · 2 comments
Closed

Comments

@Nike-rgb
Copy link

In line 17 of the logic.h file.

@dipudl
Copy link
Owner

dipudl commented Feb 13, 2021

Some compiler allow it while others don't, but conventionally two-dimensional array should be initialized with double curly braces.
So, '{0}' on line 17 has been changed to '{{0}}'. Please check if it works on your side.

Reference: https://stackoverflow.com/questions/4329324/c-error-array-must-be-initialized-with-a-brace-enclosed-initializer

@Nike-rgb
Copy link
Author

Yay it worked!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants