I want to get the index of an element in a struct.Below is the code. However it is only returning 0 as the output. Assuming I have added data to the struct below, the function find\_index does not return the index of the element.It only returns 0;

```
struct Person{
    string name;
    int age;
    float spread_prob;
    float disease_prob;
    float recover_prob;
    status disease_status;
    int sick_day;
};

Person person[9];

int find_index(string m){
    for(i=0;i<9;i++){
        if(m==person[i].name){
            return i;   
        }   
    }
    return 0;
}

```