how to solve the error: invalid conversion from " int* " to " int " : Need some help with the problem.  
When I compile my code below, it gives me this error:  error: invalid conversion from " int* " to " int "

I want to create a "calculatePercentage" function, so I can use the value when I call it.   

    void calculatePercentage(int voteResult[],int percentage[])
        
    const int NO_OF_CANDIDATE = 10;
    
    int main()
        {     
            ifstream input("votes.txt",ios::in);
            
            string candidates[NUMBER_OF_CANDIDATE];
            int    voteResult[NUMBER_OF_CANDIDATE]; 
            int    percentage[NUMBER_OF_CANDIDATE];   
            
            for (int i = 0; i < NUMBER_OF_CANDIDATE; i++) {
                input >> candidates[i] >> voteResult[i];  
            } 
            calculatePercentage(voteResult, percentage); // error happened here.
                           
            return 0;
        }

    void calculatePercentage(int voteResult[],int percentage[])
    {
        int totalVotes = 0;
            for (int i = 0; i < NUMBER_OF_CANDIDATE; i++) 
            {
                totalVotes += votes[i];
            }
            for (int j = 0; j < NUMBER_OF_CANDIDATE; j++) 
            {
            	double wk_percentage  = static_cast<double>{votes[j])/totalVotes;
               	percentage[j]=static_cast<int>(wk_percentage*100);
            }
    
    }

