I can't seem to fix this. Can anyone help?

I've completed most of this, but there are still many errors. My professor gave us a program to debug and I can't figure all of this out. Can anyone help me?
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
  
#include <iostream>

int Main()
{
  SIZE = 10;
  double nums[SIZE]; 
  double average, dev, total = 0, stdDev = 0
  double newNums[SIZE];
  int cnt = 0;

  for(i=0; i <= SIZE; i++)
  {                                
	  cout << "Enter a number: ";
	  cin << nums[i];
	  total = total + nums;
  };

  total/SIZE = average;

  cout << "\nThe average is: " << average << endl;

  total = 0;
  for(i=1; i < SIZE; i++);
  {
	  dev = nums[i] - average;
	  stdDev = stdDev + pow(dev,2);
	  if (dev <= 4.0)
	  {
		  newNums[cnt] = nums[i];
		  total = total + newNums[cnt];
		  cnt++;
	  };
  }
    
  stdDev = Sqrt(stdDev / (SIZE-1));
  cout << "The standard deviation is: " << stdDev << endl;

  cout >> "\nNumbers that are more than 4 deviations from the average are dropped " << endl;
  
  average = total/cnt;
  cout << "/n/nThe new average is: " << average << endl;

  stdDev = 0;
  for (i = 0; i < cnt; i++)
  {
	  stdDev = stdDev + pow(newNums[i] - average, 2);
  }

  stdDev = sqrt(stdDev / (cnt-1));
  cout << The new standard deviation is: << stdDev << endl;
  
  return O;
}

}

Topic archived. No new replies allowed.