I used a stub main method to check the code. It is working fine. So the
problem must be in how u r calling it.

On Mon, Oct 17, 2011 at 9:11 PM, mavrikgaur <[email protected]> wrote:

> can you also provide the main method??
>
> On Oct 17, 6:58 pm, mandeep <[email protected]> wrote:
> > 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.
>
>


-- 
Thanks and Regards
Vikram Gaur
Software Engineer
Samsung Engineering Labs, Noida
+91-9818540102

"Since human beings themselves are not fully debugged yet, there will be
bugs in your code no matter what you do." - Chris Mason

-- 
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