ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Общий форум

Submission Error
Послано Mehedi Bakht 28 май 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
Послано Ivo 30 май 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 :-/
Послано Dinh Quang Hiep (mg9h@yahoo.com) 30 май 2001 03:06
i think it's not an intelligent action !

QH@