Problem with if/else statements. Need help!

I am doing an assignment and I used if statements so many times, but today I got an error I don't know how to fix. I checked all my brackets and what not and yet I still don't know the problem. Please help!?! PS: The problems are on lines 62 and 78. Line 62 says "expected a statement" and Line 78 says " expected a }"

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#include <iostream>
#include <iomanip>
#define _USE_MATH_DEFINES		
#include <math.h>
#include <string>               
using namespace std;

int main()
{
	const int DaysinJanuary = 31;
	const int DaysinMarch = 31;
	const int DaysinApril = 30;
	const int DaysinMay = 31;
	const int DaysinJune = 30;
	const int DaysinJuly = 31;
	const int DaysinAugust = 31;
	const int DaysinSeptember = 30;
	const int DaysinOctober = 31;
	const int DaysinNovember = 30;
	const int DaysinDecember = 31;

	int Day, Year, DayNumber, DaysinFebruary;
	string Month;

	cout << "Welcome! This program will calculate the day number a given date is\nbased on its day, month and year." << endl << endl;
	cout << "Please insert a year: " << endl;
	cin >> Year;
	cout << "Please insert a month by typing its name: " << endl;
	cin >> Month;
	cout << "Please insert a day number: " << endl;
	cin >> Day;
	cout << endl << endl;

	if (Month == "January")
	{
		DayNumber = Day;
		cout << "The day number for " << Month << Day << ", " << Year << " is number " << Day << ".";
	}

	else if (Month == "February")
	{
		DayNumber = DaysinJanuary + Day;
		cout << "The day number for " << Month << Day << ", " << Year << " is number " << Day << ".";
	}

	else if (Month == "March")
	{
		if ((Year % 4 == 0 && Year % 100 != 0) || Year % 400 == 0)
		{
			DaysinFebruary = 29;
			DayNumber = DaysinJanuary + DaysinFebruary + Day;
			cout << "The day number for " << Month << Day << ", " << Year << " is number " << Day << ".";
		}

		else
		{
			DaysinFebruary = 28;
			DayNumber = DaysinJanuary + DaysinFebruary + Day;
			cout << "The day number for " << Month << Day << ", " << Year << " is number " << Day << ".";
		}

	else if (Month == "April")
	{
		if ((Year % 4 == 0 && Year % 100 != 0) || Year % 400 == 0)
		{
			DaysinFebruary = 29;
			DayNumber = DaysinJanuary + DaysinFebruary + DayinMarch + Day;
			cout << "The day number for " << Month << Day << ", " << Year << " is number " << Day << ".";
		}

		else
		{
			DaysinFebruary = 28;
			DayNumber = DaysinJanuary + DaysinFebruary + Daysin March + Day;
			cout << "The day number for " << Month << Day << ", " << Year << " is number " << Day << ".";
		}
	return 0;
}//end main 
Line 62: you need a closing brace to match line 47.
Line 78: You need a closing brace to match line 63.
Thanks!
Topic archived. No new replies allowed.