Visual Studio Code – why does it say that "sleep(1)" is undefined?
here's the error i got #ifdef _WIN32 #include <windows.h> #endif #include <iostream> #include <cstdlib> using namespace std; int main() { srand((unsigned)time(NULL)); int random = 1 + rand() % 99; int user_input; int attempts = 1; cout << "random = "…