I need some help understanding where this error is occurring:
warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions]
This is the section of the code that it is coming from:
typedef struct Hand {
bool straight = false;
bool flush = false;
bool four = false;
bool three = false;
int pairs = 0;
} Hand;
If you are using
Code Runnerextension in VS Code, you have to config theCode-runner: Executor Map. Add-std=c++17in"code-runner.executorMap"As @Răzvan Cojocaru has detailed above,
-std=c++11works, but I want to use the latestest version.