Simple code with strange ERROR

Hello! I am a noob right now and i meet strange problem that don't let me sleep at night. I wrote this program for learning purpose:
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
#include <iostream>
using namespace std;

void deviding(int * T; int N)
{
  int Rn = 0;
  int Ln = 0;
  int R[N-1];
  int L[N-1]; 
  
  if(N==1) return;
  for(int i=1; i<N; i++)
    {
      if(T[0]>T[i])
	{
	  L[Ln] = T[i];
	  Ln++;
	}
      else
	{
	  R[Rn] = T[i];
	  Rn++;
	}
    }
  for(int i=0;i<Rn;i++)
    {
      cout << "[" << R[i] <<"] ";
    }
  cout << endl;
  for(int j=0;j<Ln;j++)
    {
      cout << "[" << L[j] <<"] ";
    }
  
  deviding(R, Rn);
  deviding(L, Ln);
}

int main()
{
  int T[7] = {3,5,2,1,6,7,8};
  deviding(T,7);
  
}


And compilers output is:
deviding.cpp:4:22: error: expected ‘)’ before ‘;’ token
deviding.cpp:4:29: error: expected initializer before ‘)’ token

Do i miss some library or something? Please help me. I will be greatfull.
void deviding(int * T; int N) should be void deviding(int * T, int N)
What a stupid mistake. Thank you very much.
Topic archived. No new replies allowed.