Running Problem

Hi
I am using visual studio arduino Mega I'm trying to run my program and

In addition I'm trying to add to my code serial.print so I can see my variables Content it does not allow

//in this program we tray to control robotic hans with 20 dof 
//This program control 20  servo motors (one for each dof) we need to mimic perllal control  so the movement will look as closly as posable life like
#include <Servo.h> //including the Library for servo motors

struct finger { //creating a new type of verable name finger that Contains 4 motor one for each dof of the finger
    Servo distal;
    Servo middle;
    Servo proxi;
    Servo connplat;
};

//diclartion of the functions
int Positions();

int Move_Hand(int pos[3][5]);

int Finger_Move(struct finger FingerVerable,int factor, int Angle, int Side); 

//Set as global variables

  finger Thumb;
  finger Index;
  finger Middle;
  finger Ring;
  finger pinky;

void setup()
{   
	int pos;
	
	
  
		//Setting connections arduino
		Thumb.distal.attach(1);
		Thumb.middle.attach(2);
		Thumb.proxi.attach(3);
		Thumb.connplat.attach(4);
		//
			Index.distal.attach(5);
			Index.middle.attach(6);
			Index.proxi.attach(7);
			Index.connplat.attach(8);
		//
				Middle.distal.attach(9);
				Middle.middle.attach(10);
				Middle.proxi.attach(11);
				Middle.connplat.attach(12);
		//
						Ring.distal.attach(13);
						Ring.middle.attach(14);
						Ring.proxi.attach(15);
						Ring.connplat.attach(16);
		//
							pinky.distal.attach(17);
							pinky.middle.attach(18);
							pinky.proxi.attach(19);
							pinky.connplat.attach(20);
}
void loop()// main function it calls the positions functions
{ 
		Positions();

 

}

int Positions()//this function Contains the verables of the many positions we whant to show and the loop for displaying it one after the other
{
		int num=0;// verable for the switch case

		  int zero [3][5]  = { { 90,40,60,30,90},{ 3, 4, 2,1, 7},{0 , 1,0, 0, 0} } ; 
																  /*=====================
							|angle |60|40|60|30|90|
							=======================
							|factor| 3| 4| 2|1 | 7|
							=======================
							|side  |0 | 1| 0| 0| 0|
							=======================*/
		  int Tip [3][5]   = { { 60,40,60,30,90},{ 3, 4, 2,1, 7},{0 , 1,0, 0, 0} } ; 
															      /*=====================
							|angle |60|40|60|30|90|
							=======================
							|factor| 3| 4| 2|1 | 7|
							=======================
							|side  |0 | 1| 0| 0| 0|
							=======================*/
		  int Hook [3][5]  = { { 60,40,60,30,90},{ 3, 4, 2,1, 7},{0 , 1,0, 0, 0} } ; 
																  /*=====================
							|angle |60|40|60|30|90|
							=======================
							|factor| 3| 4| 2|1 | 7|
							=======================
							|side  |0 | 1| 0| 0| 0|
							=======================*/
	      int Palmar[3][5] = {{ 60,40,60,30,90},{ 3, 4, 2,1, 7},{0 , 1,0, 0, 0} } ; 
							                                      /*=====================
							|angle |60|40|60|30|90|
							=======================
							|factor| 3| 4| 2|1 | 7|
							=======================
							|side  |0 | 1| 0| 0| 0|
							=======================*/
	      int Spheical[3][5] = {{ 60,40,60,30,90},{ 3, 4, 2,1, 7},{0 , 1,0, 0, 0} } ; 
																  /*=====================
							|angle |60|40|60|30|90|
							=======================
							|factor| 3| 4| 2|1 | 7|
							=======================
							|side  |0 | 1| 0| 0| 0|
							=======================*/
		  int lateral[3][5] = {{ 60,40,60,30,90},{ 3, 4, 2,1, 7},{0 , 1,0, 0, 0} } ;
																  /*=====================
							|angle |60|40|60|30|90|
							=======================
							|factor| 3| 4| 2|1 | 7|
							=======================
							|side  |0 | 1| 0| 0| 0|
							=======================*/
		  int cylindr[3][5] = {{ 60,40,60,30,90},{ 3, 4, 2,1, 7},{0 , 1,0, 0, 0} } ;
																  /*=====================
							|angle |60|40|60|30|90|
							=======================
							|factor| 3| 4| 2|1 | 7|
							=======================
							|side  |0 | 1| 0| 0| 0|
							=======================*/
		  printf("thumb");
		  while (num!=7)// the display loop
		  {		
			switch(num)
			{
				case 0:
				Move_Hand(zero); //call the function "move_hand" and send the position we need
					num++; //increase the veriable "num"
				break;
			case 1:
				Move_Hand(Tip);//call the function "move_hand" and send the position we need
					num++; //increase the veriable "num"
				break;
			case 2:
				Move_Hand( lateral);//call the function "move_hand" and send the position we need
					num++; //increase the veriable "num"
				break;
			case 3:
				Move_Hand( Palmar);//call the function "move_hand" and send the position we need
					num++; //increase the veriable "num"
				break;
			case 4:
				Move_Hand( Hook);//call the function "move_hand" and send the position we need
					num++; //increase the veriable "num"
				break;
			case 5:
				Move_Hand(Spheical);//call the function "move_hand" and send the position we need
					num++; //increase the veriable "num"
				break;
			case 6:
				Move_Hand(cylindr);//call the function "move_hand" and send the position we need
				num++; //increase the veriable "num"
				break;
	
			default :
			 Move_Hand(zero);

			}


		  }
}

int Move_Hand(int Pos[3][5])
{ 
  finger FingerName=pinky;
  int fing=1;// verable for the switch case
  int Collector[5];// verable that run on the colloms
  int Col;//verable for the colloms

  while(1)
  {
	  if(Col==5 && (Collector[Col]==Pos[2][Col]))
		  break;
	  while(Collector[Col]!=Pos[2][Col])
	  {
		  switch (fing)
		  { case 1:
		      FingerName = Thumb;
			printf("thumb");
			  fing++;
			   break;
			case 2:
			   FingerName = Index;
			     fing++;
				  break;
			case 3:
				FingerName = Middle;
				 fing++;
				  break;
			case 4:
				 FingerName = Ring;
				    fing++;
					 break;
			case 5:
				  FingerName = pinky;
				  fing=0;
				   break;
		  default:
			  break;
		  }
	  }
	  Finger_Move(FingerName,Pos[0][Col],Collector[Col],Pos[2][Col]);
	  Collector[Col]=+1;
	  Col++;
	  if(Col>5)
		  Col=0;
  }

}

int Finger_Move(struct finger FingerVerable,int factor, int Angle, int Side)
{
   FingerVerable.distal.write(Angle);
   FingerVerable.middle.write(Angle/factor); 
   FingerVerable.proxi.write(Angle); 
   FingerVerable.connplat.write(Angle/Side); 
  
   
}

It's kind of hard to read with the crazy indentation, but I looked through there 4 times and I don't see a single call to Serial.print.

Which line are you needing help with?

Please use the IDE's auto format feature (ctrl-t) and repost your code and your question.

Your indentation does not help.

				num++; //increase the veriable "num"

That comment states the obvious.

You haven't explained what the problem is - what did you attempt? Are there any error messages?
Is this at compile time? Upload time? Runtime?

Does it work with the Arduino software?