Re: [gcj] Runtime Error problem about input and output

2019-02-14 Thread aabhas chawla
Can you share your code.
For java, class name has to be Solution and needs to be public.
Also, verify package dependency.

On Thu, Feb 14, 2019 at 8:58 AM Ayyuce Demirbas  wrote:

> On Wednesday, February 13, 2019 at 7:52:24 PM UTC+3, Bartholomew Furrow
> wrote:
> > Nah, that's Java, and you can do that. Ayyuce, what happens if you
> compile and run your code on your own machine, using the sample data as
> input? If you get a crash there, you should get a stack trace.
>
> It works on my computer
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-code+unsubscr...@googlegroups.com.
> To post to this group, send email to google-code@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-code/259d7492-95d2-42b8-959f-7e909d6bb0fa%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Cheers!
Aabhas

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/CAFjJqofzR5ZbmnhGdpuwstyYehaTmxU%3DfSNiG6LJ2EDNCnNKdg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gcj] Runtime Error problem about input and output

2019-02-14 Thread Ayyuce Demirbas
On Wednesday, February 13, 2019 at 7:52:24 PM UTC+3, Bartholomew Furrow wrote:
> Nah, that's Java, and you can do that. Ayyuce, what happens if you compile 
> and run your code on your own machine, using the sample data as input? If you 
> get a crash there, you should get a stack trace.

It works on my computer

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/259d7492-95d2-42b8-959f-7e909d6bb0fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gcj] Runtime Error problem about input and output

2019-02-14 Thread aabhas chawla
Runtime error sometimes mean there is an issue with code and exception is
being thrown.
If it was output issue, then you would have got wrong answer as result.

On Wed, Feb 13, 2019 at 9:23 AM Ayyuce Demirbas  wrote:

> Hello,
>
>
> I am trying to submit my solution but I get a runtime error. I think the
> problem is about input and output.
>
>
> I use these ways to receive inputs and write outputs
>
>
> //For inputs
>
>  Scanner in = new Scanner(new BufferedReader(new
> InputStreamReader(System.in)));
>
> //For outputs
>
>System.out.println("Case #" + i + ": " + (n + m) + " " + (n * m));
>
>
>
> How can I solve this problem?
>
>
> Thank you so much!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-code+unsubscr...@googlegroups.com.
> To post to this group, send email to google-code@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-code/cae3d61d-dbfe-48de-bd52-69c457522378%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Cheers!
Aabhas

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/CAFjJqof9LT2evuv0_swM8cZfiNdt18C31Oy5oohaHT8h3qMQpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gcj] Runtime Error problem about input and output

2019-02-13 Thread Luke Pebody
Yeah I used it once 11 years ago. Some aspects of the syntax might have
been forgotten.

I use C# for work and I know their syntaces are somewhat similar. Don't
know the differences.

On Wed, 13 Feb 2019, 11:56 am Bartholomew Furrow  Luke, you've just made me go through go-hero.net/jam to see whether you
> ever used Java before. Apparently you used it for Round 1A's problem B in
> 2008, and apparently not since then. I guess the dozens of languages you
> used in between provide *some* excuse for not remembering.
>
> On Wed, Feb 13, 2019 at 9:29 AM Luke Pebody  wrote:
>
>> Guessing the error is in the out: you are adding a string to an integer.
>> This works in JavaScript but not in most languages. Which language are you
>> using?
>>
>> On Wed, 13 Feb 2019, 11:23 am Ayyuce Demirbas >
>>> Hello,
>>>
>>>
>>> I am trying to submit my solution but I get a runtime error. I think the
>>> problem is about input and output.
>>>
>>>
>>> I use these ways to receive inputs and write outputs
>>>
>>>
>>> //For inputs
>>>
>>>  Scanner in = new Scanner(new BufferedReader(new
>>> InputStreamReader(System.in)));
>>>
>>> //For outputs
>>>
>>>System.out.println("Case #" + i + ": " + (n + m) + " " + (n * m));
>>>
>>>
>>>
>>> How can I solve this problem?
>>>
>>>
>>> Thank you so much!
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Code Jam" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-code+unsubscr...@googlegroups.com.
>>> To post to this group, send email to google-code@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/google-code/cae3d61d-dbfe-48de-bd52-69c457522378%40googlegroups.com
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Code Jam" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-code+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-code@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/google-code/CAECKw-MwRxWA4GshBFa%3Dza7HyBxfk439LHfAYBfU4VsGLXCe%3Dw%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-code+unsubscr...@googlegroups.com.
> To post to this group, send email to google-code@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-code/CAHaiWHMqxLHrWhJZAFyydS%3DGv_D4REPJEGhEPhcahNscndGdZw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/CAECKw-P-S3zPwMbSx2DHyz1oO%2BR%2Bkm8kGxjJukmVrP7K_vNVuQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gcj] Runtime Error problem about input and output

2019-02-13 Thread Bartholomew Furrow
Luke, you've just made me go through go-hero.net/jam to see whether you
ever used Java before. Apparently you used it for Round 1A's problem B in
2008, and apparently not since then. I guess the dozens of languages you
used in between provide *some* excuse for not remembering.

On Wed, Feb 13, 2019 at 9:29 AM Luke Pebody  wrote:

> Guessing the error is in the out: you are adding a string to an integer.
> This works in JavaScript but not in most languages. Which language are you
> using?
>
> On Wed, 13 Feb 2019, 11:23 am Ayyuce Demirbas 
>> Hello,
>>
>>
>> I am trying to submit my solution but I get a runtime error. I think the
>> problem is about input and output.
>>
>>
>> I use these ways to receive inputs and write outputs
>>
>>
>> //For inputs
>>
>>  Scanner in = new Scanner(new BufferedReader(new
>> InputStreamReader(System.in)));
>>
>> //For outputs
>>
>>System.out.println("Case #" + i + ": " + (n + m) + " " + (n * m));
>>
>>
>>
>> How can I solve this problem?
>>
>>
>> Thank you so much!
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Code Jam" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-code+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-code@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/google-code/cae3d61d-dbfe-48de-bd52-69c457522378%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-code+unsubscr...@googlegroups.com.
> To post to this group, send email to google-code@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-code/CAECKw-MwRxWA4GshBFa%3Dza7HyBxfk439LHfAYBfU4VsGLXCe%3Dw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/CAHaiWHMqxLHrWhJZAFyydS%3DGv_D4REPJEGhEPhcahNscndGdZw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gcj] Runtime Error problem about input and output

2019-02-13 Thread Bartholomew Furrow
Nah, that's Java, and you can do that. Ayyuce, what happens if you compile
and run your code on your own machine, using the sample data as input? If
you get a crash there, you should get a stack trace.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/CAHaiWHNFu-6ecuob7x9NK6FumSWZuu3q-_4zBEQGFbHDCRv0Ww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gcj] Runtime Error problem about input and output

2019-02-13 Thread Luke Pebody
Guessing the error is in the out: you are adding a string to an integer.
This works in JavaScript but not in most languages. Which language are you
using?

On Wed, 13 Feb 2019, 11:23 am Ayyuce Demirbas  Hello,
>
>
> I am trying to submit my solution but I get a runtime error. I think the
> problem is about input and output.
>
>
> I use these ways to receive inputs and write outputs
>
>
> //For inputs
>
>  Scanner in = new Scanner(new BufferedReader(new
> InputStreamReader(System.in)));
>
> //For outputs
>
>System.out.println("Case #" + i + ": " + (n + m) + " " + (n * m));
>
>
>
> How can I solve this problem?
>
>
> Thank you so much!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-code+unsubscr...@googlegroups.com.
> To post to this group, send email to google-code@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-code/cae3d61d-dbfe-48de-bd52-69c457522378%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/CAECKw-MwRxWA4GshBFa%3Dza7HyBxfk439LHfAYBfU4VsGLXCe%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[gcj] Runtime Error problem about input and output

2019-02-13 Thread Ayyuce Demirbas
Hello,


I am trying to submit my solution but I get a runtime error. I think the 
problem is about input and output.


I use these ways to receive inputs and write outputs


//For inputs

 Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

//For outputs

   System.out.println("Case #" + i + ": " + (n + m) + " " + (n * m));



How can I solve this problem?


Thank you so much!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/cae3d61d-dbfe-48de-bd52-69c457522378%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.