Execution failure

when i run some program it shows
failed to execute.
but after a while it works well...

why does it show?
Give the code
It would be really helpful if u refer some example code and compiler u are using..thanks
Last edited on
Actually it works for any code..

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

#include <iostream>
using namespace std;

long factorial (long a)
{
  if (a > 1)
   return (a * factorial (a-1));
  else
   return 1;
}

int main ()
{
   long number;
  cin>>number;
  cout << number << "! = " << factorial (number);
  
  return 0;
} 
it should work fine..what compiler are u using
OrWell Dev C++
I run it on dev c++ 5.5.2 ..it is compiling and running fine..no syntax or logical errors..
You're probably using 32bit Windows and are compiling for 64bit Windows. Although the compiler itself will run on 32bit, the created executables won't.
refer to:
http://sourceforge.net/p/orwelldevcpp/forums/troubleshooting/thread/92e145d7/

hope it helps...
my C++ is 5.5.3

It is set 32 bit

TDM GCC 32bit Release
Topic archived. No new replies allowed.