Broken code for UVA 10249 (C++11) added.