1
0

Fix for C++ 17 -> 11

This commit is contained in:
Captain ALM 2022-10-07 10:00:16 +01:00
parent 57864ba51d
commit 78acaf3290
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

View File

@ -11,7 +11,7 @@ string guessRank(int);
int main()
{
std::mt19937 rand {std::random_device{}()};
std::uniform_int_distribution clamp {1, 100};
std::uniform_int_distribution<int> clamp {1, 100};
string name {promptfs("Enter your name:")};
std::cout << "Hello " << name << ", welcome to guess the number.\n";
int guesses {};