Hi everyone - I'm new to programming and have been obsessing over this code to calculate the max, min and sum of 3 varibale for 2 days straight but can't figure out why I keep getting compiler errors!! I know it's probably something really simple but if you can please help me I'd really appreciate it!!

errors: calculate_max: local function definitions are illegal

(53) line contains a brace which has not been matched

fatal error: end of file found before the left brace

***************************

#include <iostream>

using namespace std ;

float calculate_min (float a, float b, float c);

float calculate_max (float a, float b, float c);

float sum (float a, float b, float c);

void increaseBy10 (float k, float& result);

int main()

{

float x;

float y;

float z;

float xx;

float yy;

float zz;

float min_number;

float max_number;

float sum_of;

cout << "please input 3 numbers: " << endl;

cin >> x;

cin >> y;

cin >> z;

min_number = calculate_min(x,y,z);

max_number = calculate_max(xx,yy,zz);

sum_of = sum(x,y,z);

increaseBy10( x, xx );

increaseBy10( y, yy );

increaseBy10( z, zz );

cout << endl;

cout << "The lowest value: " << min_number << endl;

cout << "The highest value: " << max_number << endl;

cout << "The total value of the three numbers: " << sum_of << endl;

cout << "The value of the three numbers if each is increased by 10 is listed:" << endl;

cout << " " << xx << endl;

cout << " " << yy << endl;

cout << " " << zz << endl;

return (0);

}

float calculate_min (float x, float y, float z)

{

float min_number;

{

if((x < y) && (x < z))

{

min_number = x;

if ((y < z) && (y < z))

{

min_number = y;

if ((z < x) && (z < y))

{

min_number = z;

}

return min_number;

}

float calculate_max (float x, float y, float z)

{

float max_number;

{

if((x > y) && (x > z))

{

max_number = x;

}

if ((y > z) && (y > z))

{

max_number = y;

}

if ((z > x) && (z > y))

{

max_number = z;

}

return max_number;

}

float sum (float x, float y, float z)

{

float sum;

{