LINK2019 problem

I'm taking my second programming class and I tried to test an exercise our Professor gave us. I typed each word just as she did, but I keep getting the error with LINK2019 and LINK1120.

I checked the parameters, I'm pretty sure I don't need another library and I'm just really confused as to what to do. I'm using Visual Studio 2015. It's in Spanish if you don't understand some words.

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
79
80
81
82
83
84
85
86
87
88
89
90
91

  //RepasoArreglos
#include <iostream>
using namespace std;

void LlenaArr(int [], const int);
int SumArr(const int[], int);
int FindMax(const int[], const int);
int FindMin(const int[], const int);
void PrintDetail(const int[], const int);




int main()
{
	const int ns = 50;
	int sec[ns] = { 0 };
	int sum, max, min;

	LlenaArr(sec, ns); 
		sum = SumArr(sec, ns);

	max = FindMax(sec, ns);
	min = FindMin(sec, ns);

	cout << "reporte de estudiantes matriculados por seccion\n\n: ";
	cout << "#est.\t#ests. mat.\t.\n\n"; 

	PrintDetail(sec, ns);

	cout << "Promedio de estudiantes por seccion: " << (double)sum / (double)ns << "\n\n";

	cout << "El menos # de estudiante matriculados en una seccion es: "<<min<<'\n';
	cout << "El mayor # de estudiantes es: " << max << '\n'; 

	system("pause"); 
    return 0;
}

void LlenaArr(int sec[], const int ns)
{
	int i;
	for (i = 0; i < ns; i++)
		cout << "Entre el # de estudiantes matriculados en la seccion" << i + 1 << ":";
		cin >> sec[i];
	while (sec[i] < 1)
	{
		cout << "El # de estudiantes en la seccion" << i + 1 << "debe ser por lo menos 1. Re-entre";
		cin >> sec[i];
	}
}

int SumArr (int sec[], const int ns)
{
	int i; 
	int sum = 0;
	{
		for (i = 0; i < ns; i++)
			sum = sum + sec[i];
	} 
	return sum; 
}

int FindMax(const int sec[], const int ns)
{
	int i, max = sec[0];
	for (i = 0; i < ns; i++) 
		if (sec[i] > max)
			max = sec[i];
	return max; 
}

int FindMin(const int sec[], const int ns)
{
	int i, min = sec[0];
	for (i = 0; i < ns; i++)
		if (sec[i] < min)
			min = sec[i];
	return min;
}

void PrintDetail(const int sec[], const int ns)
{
	int i;
	for (i = 0; i < ns; i++)
		cout << i + 1 << '\t' << sec[i] << '\n';

}

SumArr() function signature mismatch b/w the declaration and definition. Fixing it the program ran with voluminous, unformatted output in Spanish so I'm afraid I could not tell if it behaved as expected
Thank you!! Can't believe I missed that! It should work now! Thanks!
Topic archived. No new replies allowed.