HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Forums > Discussion of problems > topic:


Problem "A+B"

There is a contest!

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

imesecanFeb.07.2011 at 09:20:29 PM
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;

imesecanFeb.19.2011 at 11:45:03 PM
1Post is deleted

imesecanFeb.20.2011 at 01:55:04 PM
2You shouldn't use
system("Pause");

imesecanFeb.21.2011 at 12:03:14 PM
3Post is deleted

imesecanFeb.23.2011 at 08:31:02 PM
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