you does anyone know what is wrong ith this code


Code:
#include <stdio.h>
#include <stdlib.h>



int fight ( int player_a_p , int enemy_h_p );// a_p means attack points and h_p means health
int main()


{
    int player_a_p;
    int attack_q; // attack_q means attack_question

    
    printf ("You are walking through the woods and a goblin jumps out \n");
    printf ("will you attack [1] or try to escape [2]? \n ");
    scanf ( "%d", &attack_q );
    
    if (attack_q = 1)
    {fight;}
    else
    {printf ("that was not an option!");}
    
}

int fight (int player_a_p , int enemy_h_p , int q_offence );

{
    int player_a_p
    int q_offence
    int enemy_hp;
    enemy_hp = 100;
    
   do   
    
    printf ("enemy hit points : \n " , enemy_h_p);
    printf ("will you use an offensive move [1] \n ");
    scanf ( "d%", &q_offence);
   
    if (q_offence = 1)
   
    {
   
                  player_a_p = randn(10) + 20
                  printf ("you hit for " , player_a_p)
                  printf ("the enemy's hit points are " , enemy_h_p)
                  getchar();
                  getchar();
                  getchar();
                  getchar();
                  getchar();
                  getchar();
    }
    
    while (1==1)
    
    
    
}


im using dev-c++ and this is in c