4
Contributors
10
Replies
39
Views
3 Years
Discussion Span
Last Post by shanki himanshu
0

What's the error? Something's wrong with my dev C compiler, so I can't even compile.

And do you even need all those references?

Edited by scudzilla

0

Yeah, the problem's on my end. I can't compile any Cs or Cpps. Which is why I was asking OP what the error is.

0

@ tinstaafl it is also working fine on my dev-c++ but why it giving RTE on ideone?

Edited by shanki himanshu

0

@ tinstaafl it is also working fine on my dev-c++ but why it giving RTE on ideone?

I suspect you're not giving the Ideone sufficient input to work with. Click the "upload with new input" button and add this:

5 1 2 3 4 5

There should be no errors and the output will be:

3
9
27
81
243

Edited by deceptikon

0

@deceptikon i also think so but i remember a lot of times i got 'success' without any i/p.

Edited by shanki himanshu

0

In those cases either the program didn't expect input, or your code used reasonable default values. Did you try what I suggested?

0

@deceptikon i have given i/p yesterday and it works .
and yes,you are right. i declared 'n' aand 'k' global and i got success.
thanks.

0

i declared 'n' aand 'k' global and i got success.

That means they're defaulted to 0 instead of given some random value.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.