[Solved] C++ error C4700: uninitialized local variable ‘i’ used
for (int i; i < 6; i++) should be for (int i=0; i < 6; i++) You declared variable ‘i’ but forgot to initialise the variable, so it could have any arbitrary value, not necessarily ‘0’ 1 solved C++ error C4700: uninitialized local variable ‘i’ used