Programming Help (C++)

Hey guys, I'd like an extremely long and impressive C++ program for my school based assessment due tomorrow,I have a ton of other stuff due, been sick for 2 weeks, teacher hates me to death kek. This program is a "Problem Solving" type so should be "useful in a certain everyday activity". All are welcome to paste below.

Other urls found in this thread:

stackoverflow.com/questions/12975341/to-string-is-not-a-member-of-std-says-g-mingw
twitter.com/SFWRedditGifs

>All are welcome to paste below.
Fuck off kid. We arent doing your homework.

#include
#include

int main()
{

for (int i = 1; i

-_-

Not OP, but
13|error: 'to_string' is not a member of 'std'|

Enable C++11.

I thought, but it was already. I'm running in CodeBlocks on Windows

g++ -std=c++11 main.cpp
Works for me with gcc and clang++.

Apparently it's a bug on older versions of MingW g++.
stackoverflow.com/questions/12975341/to-string-is-not-a-member-of-std-says-g-mingw

Can someone please help? My project is due tomorrow, you're being assholes.

It's the last place you should ask for this kind of help friend.

I'll help, but you must install Gentoo.

Can you post the complete task description? So I can tailor my program better. Because your description is like liberal arts feel good shit.

#include
#include
#include
#include
#include
int main(int argc, char **argv){
std::vector hailstones;
static std::function hail = [](std::vector& h, int n)->void{
h.push_back(n);
if(n == 1) return;
n & 1 ? hail(h, n*3+1) : hail(h, n/2);
};
hail(hailstones, atoi(argv[1]));
std::for_each(hailstones.cbegin(), hailstones.cend(), [](int n){printf("%d ",n);});
return 0;
}

It's basically solving a general issue, but I'd like it to be atleast 500+lines

why dont you write your own program you ungrateful little shit

Keep your mediocre program that doesn't even run kek

Its not my program but at least he can write programs

just link me to a program that I can copy and paste please

Why don't you learn to google if you need it that badly instead of being a retarded faggot

Because I'm a retarded faggot who can't write a long program

It is intentionally terrible, also fuck you

This board is shit
mods aren't doing anything
fuck Sup Forums