In what way is cout not working? Does the code compile? Do you get an error message? What do you see on screen? Does it run? Does the window it runs in close too fast for you to actually see what happens?
Dev C++ 18.104.22.168 is a terrible choice. Throw Dev C++ 22.214.171.124 away and get something better instead. Options include the most recent version of Dev C++ (Orwell's version), whatever Micrsosoft are giving away at the moment, QT Creator, wxDev-C++; or move away from IDEs and use a simple text editor and compile it yourself from the command line (this is the method I recommend to every beginner but it's not very popular).