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

Обсуждение задачи 1000. A+B Problem

where the wrong is? 1000
Послано cityhunter 13 апр 2002 18:50
my source is :
#include<iostream.h>
void main()
{int a,b;
cin>>a>>b;
cout<<a+b<<endl;}
Re: where the wrong is? 1000
Послано Ivan Kazmenko (SPB SU FF) 14 апр 2002 00:39
> {int a,b;
AFAIK these should be longs.
Re: where the wrong is? 1000
Послано Ivan Kazmenko (SPB SU FF) 15 апр 2002 02:56
On some systems you should also write "int main {... return(0);}" to
get no Runtime Error when the program finishes running.
In some tasks, e.g 1022, you should output NO eoln at the end of
output.