Guys I need your help please :(

Guys, can you help me with my project
I can't see what's wrong with my program.
The errors are:
Line 138: Expected primary-expression before "int"
Line 138: Expected ';' before "int"
Line 158: Expected '}' at end of input

Your immediate problem is you're missing the closing brace for water_bill. This highlights the importance of formatting. If you keep the first statement after the opening brace on a separate line and use proper indentation, these little errors are much easier to find.

If your IDE/Compiler doesn't have a formatting function you should find one that does. On windows both code::blocks and Visual Studio are free and have formatting functions.

The next thing I noticed is that all your functions, outside of main, are supposed to return an int but they don't.

It may also help to read up on indent style (also called brace style) to help clarify the issue at hand. There are several ways to format C++ code, all of which have their advantages and disadvantages; the most important things are that you use a style that is widely known, and that you are consistent in applying your chosen style throughout a given program.

Sir I already solve the errors in my program
but my problem is my program has a short-circuit
can you help me to output the result 'coz it makes me dizzy when I thinking about how to solve the short-circuit.
Thanks to your help and God bless :D

Could you please explain "short-circuit"? Your confusion is also attributed by your naming convention. A function DOES something, so it is better to use a verb.
Say, instead of void water_bill() {...} better use void CalculateWaterBill() {...}. It is clearer this way and won't cause headache.

Hello,
I lost some hours trying to set up wxWidgets and starting a simple program using Code::Blocks.
wxWidgets is installed and built, following [this](http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef) tutorial. …

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...