how to fix error invalid inirection and lvalue
<pre><code>#include &lt;stdio.h&gt;

main(){
    int ctr, ctr2, accn, tempn;
    char name[10][20], kwh[10][5], due[10][5], paid[10][5], tempne[20], tempkwh[5], tempdue[5], temppd[5];
    clrscr();
    for(ctr=0;ctr&lt;10;ctr++){
    clrscr();
        printf("Account number:\n");
        scanf("%d",&amp;accn[ctr]);
        printf("Name:\n");
        scanf("%s",&amp;name[ctr][0]);
        printf("KWH used:\n");
        scanf("%s",&amp;kwh[ctr][0]);
        printf("Amount due:\n");
        scanf("%s",&amp;due[ctr][0]);
        printf("Amount paid:\n");
        scanf("%s",&amp;paid[ctr][0]);
        }
    ctr=1;
    for( ;ctr==1; ){
        ctr=0;
        for(ctr2=0;ctr2&lt;10;ctr2++){
            if(accn[ctr]&gt;accn[ctr+1])
            {
                tempn=accn[ctr];
                accn=accn[ctr+1];
                accn[ctr+1]=tempn;
                tempne=name[ctr];
                name[ctr]=name[ctr+1];
                name[ctr+1]=tempne;
                tempkwh=kwh[ctr];
                kwh[ctr]=kwh[ctr+1];
                kwh[ctr+1]=tempkwh;
                tempdue=due[ctr];
                due[ctr]=due[ctr+1];
                due[ctr+1]=tempdue;
                temppd=paid[ctr];
                paid[ctr]=paid[ctr+1];
                paid[ctr+1]=temppd;
                ctr=1;
                }
            }
            }
            clrscr();
            ctr=0;
            for( ;ctr&lt;10;ctr++){
            printf("%d %s \n%s\n %s\n %s\n\n",accn[ctr], name[ctr], kwh[ctr], due[ctr], paid[ctr]);
        }  

                                       }
</code></pre>
