Originally posted by Ito_^:
very very simple one.
You got to pre-declare (see above code in red) that procedure
before main() if you intend to write the actual procedure after
main(). The compiler compiles the codes top to bottom, so there is
no way it can know wat function1 does when it can't find in the
declarations before reaching that line calling for it.