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

compilation error
Posted by tjq(killer of zju) 3 Mar 2001 19:43
I have often encountered following floating errors like
that:
sqrt(2):ambiguious call ?

so I have to replace it with sqrt(double(2)) or sqrt(2.0)

but actually, many other compilers treat it alright,
Re: compilation error -- I ABSOLUTELY AGREE (+list of errors)
Posted by Ilya Semenov (NSU) 4 Mar 2001 12:12
I have also -T-I-R-E-D- gettings those f**king 'compilation
errors', especially at online contests when they lead to
the bunch of the penalty time!!!

Here's my list of comp. errors.
Here I omitted the repeated ones (e.g. I got ambiguity for
sqrt() three or four times, the same goes to the 'undefined
identifier' error)
ALL OF THEM COMPILED OK on both my home and university
Microsoft VC++ 6.0 (w/ and w/o SP3)

temp\18560(20) : error C2668: 'sqrt' : ambiguous call to
overloaded function
17751.obj : error LNK2001: unresolved external symbol
_strdup
temp\17391(3) : error C2169: 'abs' : intrinsic function,
cannot be defined
temp\16940(37) : error C2065: 'i' : undeclared identifier
[there was the fragment like this: for(int i=0;i<N;i++)
{/* ... */} i=0 /* C2065 */ ]
temp\12991(131) : error C2440: 'argument' : cannot convert
from 'const class Matrix' to 'class Matrix &' [ there were
*NO* const-modifier conversions ]
temp\6431(41) : error C2668: 'acos' : ambiguous call to
overloaded function
temp\5511(8) : fatal error C1083: Cannot open include
file: 'malloc.h': No such file or directory [WTF??? that's
an ANSI standart header file!!]
temp\5416(88) : fatal error C1004: unexpected end of file
found
e:\judge\include\memory(9) : fatal error C1083: Cannot open
include file: 'xmemory': No such file or directory
e:\judge\include\streambuf(9) : fatal error C1083: Cannot
open include file: 'xlocnum': No such file or directory

what's the damn old C++ compiler do you use?? I wonder
that's MSVC4.2 or even older..
It even doesn't support STL (standrat template library),
and we have to rewrite lists,
queues, trees, Balanced-trees and other unpretty to code
stuff again and again.

P.S.
Nevertheless I want to thank you that you didn't choose
DOS16 platform and BorlandC 3.1 and BorlandPascal 7.0 as
compilers, as they did it on ACM Northeastern Quarter &
Half. That would be MUCH worse to think of 64Kb barrier, of
16bit integer's and other damn things :)
actually, I use BC 3.1 at home
Posted by tjq(killer of zju) 4 Mar 2001 13:16
the VC compiler is too slow to compile a file, and
difficult to handle all the projects and workspaces,so I
prefer BC 3.1, it's sooooooooo fast, but I have to use
16bit integers, and 64k memory to debug at most,
another alternative comiler is Djgpp(gcc under dos), it's
powerful, but compile not as fast as bc 3.1
Projects? Workspaces??? I use cmdline. "cl /MD file.cpp" works extremly fast. (-)
Posted by Ilya Semenov (NSU) 4 Mar 2001 13:33
> the VC compiler is too slow to compile a file, and
> difficult to handle all the projects and workspaces,so I
> prefer BC 3.1, it's sooooooooo fast, but I have to use
> 16bit integers, and 64k memory to debug at most,
> another alternative comiler is Djgpp(gcc under dos), it's
> powerful, but compile not as fast as bc 3.1
I never use cmdline, I prefer IDE
Posted by tjq(killer of zju) 4 Mar 2001 13:58
IDE is too good, and I can't live without it, I don't want
to recite all the compiler options, and using an editor to
edit my program, then quit, then compile, then debug, then
maybe change code again, it's too terrible.
btw /mt means multi thread?