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

Programming language standards
Posted by Pavel Minev Penev 3 Oct 2000 01:48
Could someone, please, clarify what "C" and "C++" mean.
Which standards do these refer to (ANSI, ISO, POSIX?) and
which versions. And is there a way to get some details on a
"Comipler error" message. I suppose there is no way to use a
BSD or System V -specific funtion, am I right?

Pavel
Re: Programming language standards
Posted by tjq(killer of zju) 3 Oct 2000 09:31
> Could someone, please, clarify what "C" and "C++" mean.
> Which standards do these refer to (ANSI, ISO, POSIX?) and
> which versions. And is there a way to get some details on
a
> "Comipler error" message. I suppose there is no way to
use a
> BSD or System V -specific funtion, am I right?
>
> Pavel

they use gcc for c and c++, so it adheres to ANSI and
POSIX, and added many function of linux, but many are
restricted,

Pascal is the most difficult, they use GNU pascal compiler
I supppose, it's not compatible with TP and Delphi, and
always cause problems,

for more info, see http://acm.fi.uva.es, there's a rule
page, but I don't know whether is applies here or not,
Language
Posted by Dmitry S. Lyubshin 3 Oct 2000 12:28
I've recently got a compiler error trying to use "long long"
in C (I'm so used to it since Valladolid...) Getting 10
compile errors is a painful way to learn about the compiler.
I think it could be useful to enlarge the "System info"
page.
Re: Programming language standards
Posted by Pavel Atnashev 3 Oct 2000 15:31
Compilers:

C, C++ - MS Visual C++ 6.0 with language extensions
disabled.

Pascal - Borland Delphi 2.0
I am so stupid to see
Posted by tjq(killer of zju) 3 Oct 2000 20:34
> Compilers:
>
> C, C++ - MS Visual C++ 6.0 with language extensions
> disabled.
>
> Pascal - Borland Delphi 2.0
>

I see, thank you, you use asp, so your server OS couldn't
be LINUX but windows NT, and why not use a higher Delphi
version such as 5?
Re: I am so stupid to see
Posted by Pavel Atnashev 4 Oct 2000 10:55
> I see, thank you, you use asp, so your server OS couldn't
> be LINUX but windows NT, and why not use a higher Delphi
> version such as 5?

What the diff between 2 and 5 if most functions are
restricted?
Re: A user-land problem
Posted by Pavel Minev Penev 5 Oct 2000 16:15
I see you are having a nice discussion. However, I am back
to my problem. From
"http://acm.fi.uva.es/contest/data/last/rules.html":

"...
Submissions in C must adhere to the ANSI standard
X3.159-1989. The only permitted
     extension to the language are chosen functions of the
ANSI standard library. It is the
     responsibility of the team, not the compiler, to ensure
that the submission meets the
     required standard.
..."

Now, this "chosen functions" do not help me much. For
example I need to know whether I can use functions like
"memcpy", "memset", "strcpy", "strlen".

My particular problem is that I believe I have solved
problem 1002 ("phone numbers"), and I compile the solution
on my machine via:

gcc -pedantic-errors -ansi -o problem_phonenumbers     ...        ...
problem_phonenumbers.c

However, the on-line judge says "Compilation error".

Question 2:
I have requested to recieve information via e-mail, but I
haven't recieved it, yet (for a few days, now). This is not
a big pain for now, though, I wouldn't like to rely on such
a mail system on the real competition (I would have just a
few hours till its end, I would have to wait days to get my
results :)).

Some mail headers from a message I finally got:
From acm@timus.ru Sun Sep 10 12:04:37 2000
Received: from localhost [127.0.0.1]
        by smash.it.local with esmtp (Exim 3.16 #1 (Debian))
        id 13Y2zk-00009W-01; Sun, 10 Sep 2000 12:01:48 +0300
Delivered-To: kal_pav@sz.techno-link.com
Received: from mail.sz.techno-link.com
        by fetchmail-4.6.4 POP3
        for <r/localhost> (single-drop); Sun, 10 Sep 2000
12:01:48 EEST
Received: (qmail 26937 invoked from network); 4 Oct 2000
13:55:52 -0000
Received: from router.uralekos.ru (212.220.43.226)
  by zagorka.techno-link.com with SMTP; 4 Oct 2000 13:55:52
-0000
Received: from dc-wks ([192.0.0.2]) by router.uralekos.ru
with Microsoft SMTPSVC(5.0.2195.1600);
         Tue, 3 Oct 2000 01:42:22 +0600
Date: Tue, 03 Oct 00 01:42:21 Ekaterinburg Daylight Time
From: acm@timus.ru
To: kal_pav@sz.techno-link.com<kal_pav@sz.techno-link.com>
Subject: Online Judge #1114. Accepted
X-Mailer: <Judge Mail>

These show that the message stayed 36 hours at
"router.uralekos.ru". Hope that helps.

Thank you,
Pavel