Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.

Closed 4 years ago .

I'm using the Eclipse C++ IDE and MinGW 8.2 and can use other functions such as mt19937, string, etc perfectly fine. Here's the code where it keeps acting up:

#include "MyHeader.h"
#include <random>
using namespace std;
void generateDictionary() {
    int initialAlphabet[26];
    for (int i = 0; i < 26; i++) {
        initialAlphabet[i] = i;
    std::mt19937 randomSeed(std::random_device{}());
    std::shuffle(initialAlphabet, initialAlphabet+26, randomSeed);
                @RemyLebeau Thank you. That was the problem, I spent ~1 hr trying to trouble shoot it (and other things), only to now realize that I missed <algorithm> on the c++ docs!
– Jon Doe
                Sep 17, 2019 at 1:45
                @RemyLebeau sorry about the off-topic question, but when the resolving answer is given in the comments, what is a good course of action?
– Enthus3d
                Sep 17, 2019 at 1:46
                @Enthus3d, Giving a hint that it should be an answer, answering the question yourself, or voting to close the question if it should be closed (waiting for others to do so at lower rep). It depends on the circumstances. One reason for comment answers is that the author would feel obliged to put in a lot more effort for an actual answer or they wouldn't feel proud enough of their answer that they want reputation from it. I think making it a community answer solves both of those well enough. There's probably a topic or two about this on meta already.
– chris
                Sep 17, 2019 at 2:13