♪ The autumn leaves keep turning to the colour of your hair. ♫
I don't answer many questions these days. Stack Overflow is supposed to be a repository of interesting questions about computer programs, not a helpdesk or a place where we debug your code for you. Unfortunately, 99.5%1 of new questions are now just totally localised "fix my code plz" rubbish that will never be useful for anyone else at any later date, so there's nothing left to do here.
To all those encouraging this behaviour by dumping your awful code solutions on these people, I hope you're happy, and I hope you enjoy accruing your rep by contributing to the complete devastation of our profession.
1 I made that number up.
- The STL is obsolete; you're using the C++ Standard Library.
- There's no such thing as "heap" or "stack" in the context in which you're trying to use it.
- "Hi" and "thanks" are for the RW, not SO
- Google Style Guide for C++ is a deal-breaker
Upvotes are not for "correcting" downvotes. It is not your job to take away somebody else's right to vote. Only upvote if you thought that it was a great question/answer, not because you disagreed with somebody else's downvote.
Q&A for professional and enthusiast programmers
Q&A for meta-discussion of the Stack Exchange family of Q&A websites
Q&A for science fiction and fantasy enthusiasts
Q&A for professional programmers interested in conceptual questions about software development
Q&A for members of the workforce navigating the professional setting
Q&A for linguists, etymologists, and serious English language enthusiasts
Q&A for users of TeX, LaTeX, ConTeXt, and related typesetting systems
Q&A for peer programmer code reviews
Q&A for movie and tv enthusiasts
Q&A for Graphic Design professionals, students, and enthusiasts
Q&A for Information security professionals
Q&A for computer enthusiasts and power users
Q&A for speakers of German wanting to discuss the finer points of the language and translation
Q&A for user experience researchers and experts
Q&A for contractors and serious DIYers
Q&A for professional system and network administrators
Q&A for people studying math at any level and professionals in related fields
Q&A for speakers of other languages learning English
Q&A for active researchers, academics and students of physics
Q&A for mechanics and DIY enthusiast owners of cars, trucks, and motorcycles
Q&A for Ubuntu users and developers
Q&A for professional and independent game developers
Q&A for users of Linux, FreeBSD and other Un*x-like operating systems.
Q&A for spacecraft operators, scientists, engineers, and enthusiasts
Q&A for programming puzzle enthusiasts and code golfers
Q&A for enthusiasts and power users of the Android operating system
Q&A for road warriors and seasoned travelers
Q&A for apps, scripts, and development with the Stack Exchange API
Q&A for academics and those enrolled in higher education
Q&A for people who want to be financially literate
Q&A for power users of Apple hardware and software
Q&A for people who build and repair bicycles, people who train cycling, or commute on bicycles
Q&A for pro webmasters
Q&A for professional, enthusiast and amateur photographers
Q&A for passionate videogamers on all platforms
Q&A for professional mathematicians
Q&A for database professionals who wish to improve their database skills and learn from others in the community
Q&A for students, teachers, and linguists wanting to discuss the finer points of the Chinese language
Q&A for participants in team and individual sport activities
Q&A for parents, grandparents, nannies and others with a parenting role
Q&A for aircraft pilots, mechanics, and enthusiasts
Q&A for LEGO® and building block enthusiasts
Q&A for students, teachers, and linguists wanting to discuss the finer points of the French language
Q&A for historians and history buffs
Q&A for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation
Q&A for musicians, students, and enthusiasts
Q&A for people seeking specific software recommendations
Q&A for software developers, mathematicians and others interested in cryptography
Stack Exchange Network staging zone, where users come together to build new Q&A sites