ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

Submission Error
Posted by Mehedi Bakht 28 May 2001 00:31
Hi

I am a newcomer at this site.
Can anyone tell me what causes submission error in this
source code?



By the way, can anyone plz tell me
/* @JUDGE_ID:  1048 C++ */
#include<stdio.h>
#include<string.h>
#define SIZE 1000000

int array[SIZE];
char output[SIZE+1];

int main()
{
long int M;
long int j, i;
int t1, t2, temp, carry;

scanf("%ld",&M);
{
strcpy(output,"0");

for(j = 0; j < M;j++)
{
scanf("%d%d",&t1,&t2);
array[j] = t1+t2;
}


carry = 0;

for(j = M-1, i = 0; j >= 0; j--)
{
temp = array[j] + carry;
carry  = temp / 10;
array[j] = temp % 10;
output[j] = array[j] + '0';
}

if(M == 0)
M = 1;

output[M] = '\0';

if(carry != 0)
printf("%c",carry+'0');

printf("%s\n",output);

return 0;
}

Can anyone also tell me when one gets compilation error?
I got messages like
Command line warning D4002 : ignoring unknown
option '/PDB:NONE'
include
fatal error C1083: Cannot open source
file: 'e:\judge\include': Permission denied
35483
temp\35483(2) : fatal error C1083: Cannot open include
file: 'stdio.h': No such file or directory
Generating Code...
1 do
Re : It is simple
Posted by Ivo 30 May 2001 00:56
/* @JUDGE_ID:*******  1048 C++ */
******- is your unique number such as my 11754GA.
Find yours and put it on the starts place!

Bye!!!
hey Ivo, Tong Hop Vo Dich, but why do u show your ID to public :-/
Posted by Dinh Quang Hiep (mg9h@yahoo.com) 30 May 2001 03:06
i think it's not an intelligent action !

QH@