well during submission it's not required.
and even when i include main() method,still getting the same error.

On Mon, Oct 17, 2011 at 7:25 PM, Swati Lamba <[email protected]> wrote:

> where is main() method?
>
> On 10/17/11, mandy <[email protected]> wrote:
> > hi there,here is my solution to srm-3,but i am getting error-(there is
> > no such method)
> > So tell me what's wrong with this program.
> >
> > public class Bonuses {
> > static int i,j,temp,avg=0,sum=0,l=0;
> >          public static int[] getDivison(int[] points)
> > {
> >     for(l=0;l<points.length;l++)
> >     {
> >         avg+=points[l];
> >     }
> >     for(j=0;j<points.length;j++)
> >     {
> >        res[j]=points[j];
> >        res[j]=res[j]*100/avg;
> >        points[j]=res[j];
> >        sum+=points[j];
> >     System.out.print(points[j]);
> >     }
> >     System.out.println(sum);
> >      for(i=0;i<points.length;i++)
> >
> >         for(j=i+1;j<points.length;j++)
> >         {
> >             if(res[j]>res[i])
> >             {
> >                 temp=res[j];
> >                 res[j]=res[i];
> >                 res[i]=temp;
> >             }
> >         }
> >          for(i=0;i<points.length;i++)
> >          {
> >          for(j=0;j<points.length&&sum!=100;j++)
> >          {
> >             if(res[i]==points[j])
> >             {
> >                 points[j]+=1;
> >          sum++;
> >             }
> >          }
> >          }
> >     return points;
> > }
> > }
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "google-codejam" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> > http://groups.google.com/group/google-code?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-codejam" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-code?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-codejam" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en.

Reply via email to