You're getting errors long before you start running the code - that won;t compile - which is probably why you are "getting error".
Start by looking at the compiler output - in most IDE's if you double click an error message it will take you to the appropriate line.
The obvious ones to start with are:
# include <stdio.h>
# include <math.h>
You shouldn;t have a space between '#' and 'include'
#include
Doesn't load anything, so it will cause problems. Get rid of it.
long long i=0,a=0;
What is a "
long long
"? You only need the type name once.
for(int i=2; i<n;> {
What happened to the increment? and the close bracket?
Try:
for(int i=2; i<n; i++) {
There will be others, but I'm not a compiler - so use yours and read the error messages!
Other things you should think about:
Pick a bracketing style and stick to it: mixing 1TB with K&R in a trivial app is just silly because it makes it hard for you to read, never mind anyone else.
So
bool myFunction()
{
for (...) {
statement;
}
}
doesn't help you.
Stick to K&R:
bool myFunction()
{
for (...)
{
statement;
}
}
Or Whitesmiths:
bool myFunction()
{
for (...)
{
statement;
}
}
Don't try to use 1TB until you are well and truly familiar with the language itself.