In file included from prog.cpp:2:
In file included from /usr/bin/../lib/gcc/i586-linux-gnu/4.9/../../../../include/c++/4.9/random:35:
/usr/bin/../lib/gcc/i586-linux-gnu/4.9/../../../../include/c++/4.9/bits/c++0x_warning.h:32:2: error: This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
prog.cpp:31:61: error: use of undeclared identifier 'answer'
cout << "You've guessed wrong 3 times. The answer was " << answer << ".\n\n";
^
prog.cpp:34:7: warning: equality comparison result unused [-Wunused-comparison]
END == 0;
~~~~^~~~
prog.cpp:34:7: note: use '=' to turn this equality comparison into an assignment
END == 0;
^~
=
prog.cpp:35:12: warning: equality comparison result unused [-Wunused-comparison]
attempts == 0;
~~~~~~~~~^~~~
prog.cpp:35:12: note: use '=' to turn this equality comparison into an assignment
attempts == 0;
^~
=
prog.cpp:36:10: warning: equality comparison result unused [-Wunused-comparison]
repeat == "x";
~~~~~~~^~~~~~
prog.cpp:36:10: note: use '=' to turn this equality comparison into an assignment
repeat == "x";
^~
=
3 warnings and 2 errors generated.