On Tuesday, 16 July 2013 at 22:17:58 UTC, Adam D. Ruppe wrote: > On Tuesday, 16 July 2013 at 22:12:36 UTC, cmplx wrote: > >> Compile error: >> Error: undefined identifier 'a' > > Are you sure the int a = 10; was copied outside the function > too? yes, you are right, 'a' has been initialised in the 'main' and therefore was a mistake thank you