Re: code error



"yanyo" <x_raver1@xxxxxxxxxxx> writes:
> hi, im trying to figure out whats the problem with this program i get a
> runtime error but i dont see where the problem is i tried changing
> declaration but nothing if somrbody can try this on their compiler to make
> sure is not a compiler compatibility problem.
[snip]

You say you're getting a runtime error. The code you posted doesn't
compile ("average" and "sd" are undeclared). Therefore what you
posted isn't the code that gets the runtime error.

If you post code here, *always* post the *exact* code that you
compiled. Anything else is a waste of time.

--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
.



Relevant Pages

  • Re: narrowing conversions with arrays
    ... Causes the runtime error. ... So the compiler doesn't raise an error because bases can contain an instance ... An unhandled exception of type 'System.ArrayTypeMismatchException' occurred ... Inheritedinheriteds; ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: segmentation fault on calloc
    ... > Failure to #include something is only going to confuse the compiler. ... returns `int', while in fact it returns `void *'. ... which may well cause a runtime error. ...
    (comp.lang.c)
  • Re: Why do i get runtime error ?
    ... I get runtime error for the above code. ... That depends on the compiler. ... mismatches between a printf format string and arguments (if the format ... Some compilers might be able to help you diagnose ...
    (comp.lang.c)
  • Re: matmul trouble
    ... I'm puzzled that this should turn into a runtime error with 123456789 as ... and direct form would count as "bonehead". ... This has zero to do with reading array input. ... Compiler installation problems, including such things as managing to ...
    (comp.lang.fortran)
  • Re: Question about 6.2.4 of C99
    ... compilers to reuse memory in some cases, ... muddying up the semantics and/or making the programmer work harder. ... than it would be if the declaration created and really ... I understand why the VLA rules are the way they are. ...
    (comp.std.c)