Main.cc: In function 'int main()': Main.cc:9:4: error: 'a' was not declared in this scope a[j]=(2*a[j-1]+a[j-2])%32767; ^