Thanks for replying.
I tried your commands but the output file is still empty.
I'm using Windows.
I've attached the source code and input file in a new thread.
The problem is Saving the universe from Qualification Round 2008.
Link:
http://groups.google.com/group/google-code/t/93d3424fb92335cc

Thanks

Shaunak



On Aug 13, 5:14 am, Saul Hidalgo <[email protected]> wrote:
>       Check that a.out is running correctly. A question, What happen when
> you type the next command?
>       ./a.out < 1.in
>
>       The output should not be empty.
>
>
>
>
>
> On Thu, Aug 13, 2009 at 5:52 AM, Scott Wallace <[email protected]> wrote:
>
> > Without seeing the code, it's hard to say.
>
> > Check the output isn't going to STDERR instead of STDOUT.
>
> > You chould try:
> >  ./a.out < 1.in 2>&1 1.out
>
> > That will send both STDOUT and STDERR to the 1.out file.
>
> > 2009/8/12 shaunak <[email protected]>:
>
> > > Hi all,
> > > I'm new to code jam. Can you please give me the details of how to
> > > create the output file from the given small/large input file provided
> > > by google. I'm using Turbo C++ compiler.
> > > My source code file is jam09.cpp and the input file is 1.in.
> > > When i type in the command prompt (Ms-DOS)
> > > tc jam09.cpp
> > > ./a.out <1.in> 1.out
> > > a 0 kb file 1.out is created.
> > > My program works correctly when i enter the details using keyboard.
> > > Please help me out.
>
> > > On Aug 5, 11:19 am, Aditya Bhiday <[email protected]> wrote:
> > >> On Tue, Aug 4, 2009 at 12:11 PM, ice <[email protected]> wrote:
>
> > >> > Who knows how to test my program with the test data provided by google
> > >> > on my own computer locally.
>
> > >> Depends on which language you are using. If its gcc, use pipes to direct
> > >> input and output through files
>
> > >> For example,
> > >> gcc prog1.c
> > >> ./a.out <1.in >1.out
> > >> will take in input from 1.in and save the output in 1.out
>
> > >> Hope this helps.
>
> > >> --
> > >> Regards,
> > >> Aditya Bhiday
>
> > --
> > Scott.
>
> --
> Saul Hidalgo
--~--~---------~--~----~------------~-------~--~----~
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