I don't know how to explain this really... I'm using Dev C++ 5.11. line 6 says int main (int argc, char** argv)
yours (on youtube) shows as int main (int argc, char *argv). The "Hello World" program ran with my original line 6 as shown. However when i gave it char j; with cout and cin, the program gave me an error until i used your line.
Also on this version 5.11 it automatically gives me #include <iostream> but not <cstdlib> so i need to input that manually. just a heads up for this version 5.11