help

General topic about Valladolid Online Judge

Moderator: Board moderators

Post Reply
bloodnight
New poster
Posts: 6
Joined: Thu Dec 30, 2004 5:14 pm

help

Post by bloodnight »

:o 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. :wink:
Iwashere
New poster
Posts: 20
Joined: Mon Aug 11, 2003 1:50 pm
Location: Singapore

Post 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
bloodnight
New poster
Posts: 6
Joined: Thu Dec 30, 2004 5:14 pm

Post 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;
}
Iwashere
New poster
Posts: 20
Joined: Mon Aug 11, 2003 1:50 pm
Location: Singapore

Post 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!
bloodnight
New poster
Posts: 6
Joined: Thu Dec 30, 2004 5:14 pm

Post by bloodnight »

:D thanks
Post Reply

Return to “General”