help with my code

Hi guys, i'm trying to do my homework that my teacher gave us and I'm getting an error that I don't know how to solve this. with u guys help I would be so grateful

estatisticas.cpp
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
  #include <iostream>
#include "concurso.h"

int main()
{
	int participantes, quantidadeQuestoes, i, j;

	std::cout << "Qual o numero de participantes? ";
	std::cin >> participantes;

	std::cout << "Qual o numero de questoes? ";
	std::cin >> quantidadeQuestoes;
	
	linha(10, '-');

	questoes * pt = new questoes[quantidadeQuestoes];			

	for (i = 1; i <= participantes; i++)					
	{
		std::cout << "Participante " << i;

		for (j = 1; j <= quantidadeQuestoes; j++)				
		{

		}
	}

	system("pause");
};


concurso.cpp
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
#include <iostream>

struct hora
{
	int horas;
	int minutos;
};

struct questoes
{
	int dificuldade;
	hora inicio;
	hora fim;
};

struct estatistica
{
	float dificuldadeMedia;
	float tempoMedio;
};

void linha(char simbolo, int numero)
{
	int contador=0;
	while (contador < numero)
		{
			std::cout << simbolo;
			contador++;
		}
	std::cout << std::endl;
}


concurso.h
1
2
3
4
5
6
7
8
9
#include "concurso.cpp"

struct hora;

struct questoes;

struct estatistica;

void linha(char simbolo, int numero);
the error it shows when i compile
1
2
3
4
5
6
7
8
1>  concurso.cpp
1>  Generating Code...
1>  Compiling...
1>  estatisticas.cpp
1>  Generating Code...
1>estatisticas.obj : error LNK2005: "void __cdecl linha(char,int)" (?linha@@YAXDH@Z) already defined in concurso.obj
1>d:\documents\visual studio 2015\Projects\tp2\Debug\tp2.exe : fatal error LNK1169: one or more multiply defined symbols found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 
Topic archived. No new replies allowed.