when i run the program, it'll printf the prompts in the function get_element up until "enter electrons"...where an error says "6002- float point not loaded"

first of all what does this mean,
and then is there something wrong withy my scanf at that point?

p.s. I don't quite grasp the logic to putting the user input into the array electrons[7], so if you can help, let me know...



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




typedef struct{
	int atomic_num;
	char element[20];
	char symbol[2];
	char type[20];
	double atomic_weight;
	int electrons[7];
} element_t;

element_t get_element(void);




int main(void)
{

	element_t elem;
	elem = get_element();

	return(0);

}

element_t get_element(void)
{
	element_t elem;
	int i = 0;

	printf("enter atomic number:");
	scanf("%d", &elem.atomic_num);
	printf("\nenter element name:");
	scanf("%s", elem.element);
	printf("\nenter symbol:");
	scanf("%s", elem.symbol);
	printf("\nenter type:");
	scanf("%s", elem.symbol);
	printf("\nenter atomic weight:");
	scanf("%lf", &elem.atomic_weight);
	printf("\nenter electrons:");
	scanf("%d", &elem.electrons[]);
	
	return(elem);
}