Page 1 of 1
help
Posted: Thu Dec 30, 2004 5:27 pm
by bloodnight

hey,buddy ,could you pls tell me how to get the detailed info
about the compile error when I encounter it...i can find it nowhere...
im a newcomer here and meanwhile happy new year to you.

Posted: Thu Dec 30, 2004 5:58 pm
by Iwashere
erm check your mail? the judge should have sent a mail to your email account, giving you exact details of the compile error
Posted: Fri Dec 31, 2004 5:50 am
by bloodnight
much thanks to your warm help
but the problem is that not even only one time could i get the feedback email from the online-judge system, is there sth wrong?
my codes for #102 using C++ is as follows, compile error , puzzling , any help would be greatly appreciated...
#include <iostream>
#include <string>
using namespace std;
struct bin
{
long brown,green,clear;
}bin[3];
struct movements
{
long n;
string s;
}movements[6];
int main()
{
long min;
while(!feof(stdin))
{
for( int i=0 ; i<3 ; i++ )
cin>>bin.brown>>bin.green>>bin.clear;
i=0;
movements.n=bin[1].brown+bin[2].brown+bin[0].green+bin[2].green+bin[0].clear+bin[1].clear;
movements.s="BGC";
i++;
movements.n=bin[1].brown+bin[2].brown+bin[0].clear+bin[2].clear+bin[0].green+bin[1].green;
movements.s="BCG";
i++;
movements.n=bin[1].green+bin[2].green+bin[0].brown+bin[2].brown+bin[0].clear+bin[1].clear;
movements.s="GBC";
i++;
movements.n=bin[1].green+bin[2].green+bin[0].clear+bin[2].clear+bin[0].brown+bin[1].brown;
movements[i].s="GCB";
i++;
movements[i].n=bin[1].clear+bin[2].clear+bin[0].brown+bin[2].brown+bin[0].green+bin[1].green;
movements[i].s="CBG";
i++;
movements[i].n=bin[1].clear+bin[2].clear+bin[0].green+bin[2].green+bin[0].brown+bin[1].brown;
movements[i].s="CGB";
min=movements[0].n;
for( i=1 ; i<6 ; i++ )
if(movements[i].n<min)
min=movements[i].n;
for( i=0 ; i<6 ; i++ )
if(movements[i].n==min)
{
cout<<movements[i].s<<" "<<min<<endl;
break;
}
}
return 0;
}
Posted: Fri Dec 31, 2004 6:50 am
by Iwashere
edit your member infomation. there's a option smthing like this
You want to receive the replies from the Online Judge to :
- The host I used to send that program
- Always to the E-Mail address specified at the top
- No E-Mail reply at all: I'll surf the Web!
Posted: Fri Dec 31, 2004 7:08 am
by bloodnight

thanks