error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘=’ token & error: expected ‘)’ before ‘va’
<p>I am compiling the below c and .h codes in GCC terminal (centos linux) for an ATM project received the below errors. Please help as I am new to programming.</p>

<pre><code>validate_acc.h
#ifndef _VALIDATE_ACC_
#define _VALIDATE_ACC_

struct validate_acc {
int user_acc_try, i = 0;
 int user_has_not_entered_right_acc = 1;
 int retries = 3;
  };

 typedef struct validate_acc Validate_acc;




  #endif
</code></pre>

<p>===============================================</p>

<pre><code>validate_acc.c

#include&lt;stdio.h&gt;
 #include "validate_acc.h"

  extern int account_number;

  void (Validate_acc va)
{


va.user_acc_try, va.i = 0;
va.user_has_not_entered_right_acc = 1;
va.retries = 3;



 while(va.retries &gt; 0 &amp;&amp; va.user_has_not_entered_right_acc == 1){
               printf("\nPlease enter your account number: ");
               scanf("%d", &amp;va.user_acc_try);

               if(va.user_acc_try != account_number){
                                   printf("You entered the wrong     account      number\n");
                               va.retries--;
                               }
               else{
               va.user_has_not_entered_right_acc = 0;
               }
               }
 }
</code></pre>

<p>====================errors</p>

<pre><code>[linux@localhost Assignment1]$ gcc -c validate_acc.c
In file included from validate_acc.c:2:0:
validate_acc.h:5:23: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or   ‘__attribute__’ before ‘=’ token
  int user_acc_try, i = 0;
                   ^
validate_acc.c:6:20: error: expected ‘)’ before ‘va’
 void (Validate_acc va)
</code></pre>