Questions about this program in c++

This is a discussion on Questions about this program in c++ within the C++ Programming forums, part of the General Programming Boards category; #include <iostream> // no .h
And please stop using `void main`. `int main` is one of the correct forms....

That's fine, but we have not even gotten to any programming related advice. We're trying to start by making sure the code you posted has the correct syntax so you can compile it. I told you exactly what to type, in the exact location, and you didn't even get that far.

When you hit a roadblock like this, the best thing to do is take a step back. Go back to what you know, review what you've learned, and try going forward again slowly, making sure you understand each small step.

It's a bit suspicious that you claim you created* this code, but can't figure out that a brace is missing (especially when it was pointed out explicitly in this thread).

(*) I'll give you credit that you said "create" this code, and not "write" this code, because it is obviously a copy/paste mish-mosh of code written by others (i.e. here).

Those last few bracekts you were told to remove need to be put back because you are using an old compiler that does not respect the new standard on for-loop variable scoping.

You are using various wrong wrong words and bad spelling in there. Rather than "vicinity", you actually mean "perimeter". And instead of "ribs" you mean "sides". "height" is spelt with an 'e', and "draw" is spelt with an 'a'.

Your terrible approximation of Pi will give you a bad result too.

There is still one missing curly bracket. Figure out what each bracket matches with and you should be able to see the problem.