ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Форумы > Обсуждение задач > тема:


Задача "A+B"

Идёт турнир!

В настоящий момент идёт турнир. Некоторая информация и функции сервера недоступны до его окончания.

imesecan07.фев.2011 в 21:20:29
0In questions when it specifies a condition for sure it's better to check for it. But usually, you shouldn't give extra information like:
cout<<"the sum is"<<A+B<<endl;
but simply say
cout<<A+B;
Just what it asks.

Or, when getting information, you don't say,
cout<<"Enter a number..:";
cin>>A;
but simply say
cin>>A;

imesecan19.фев.2011 в 23:45:03
1Реплика удалена

imesecan20.фев.2011 в 13:55:04
2You shouldn't use
system("Pause");

imesecan21.фев.2011 в 12:03:14
3Реплика удалена

imesecan23.фев.2011 в 20:31:02
4<b>Error Logs :</b>
At the right bottom part of the question page, you can see a button with the name "info". When you click on it it opens two other buttons. "code" and "log" From the button code you can see your previous submissions, and from the button log, you can see the error log of your submission. This is you submission log. On your fourth line
---------- compiler_stdout.txt ----------

---------- compiler_stderr.txt ----------
solver.cpp: In function `int main()':
solver.cpp:6: error: `cin' undeclared (first use this function)
solver.cpp:6: error: (Each undeclared identifier is reported only once for each function it appears in.)
solver.cpp:17:2: warning: no newline at end of file


www.contester.ru