Main.cc: In function 'int jiecheng(int)': Main.cc:8:9: error: declaration of 'int n' shadows a parameter int n=1; ^ Main.cc:9:20: error: 'a' was not declared in this scope for(int i=2;i<=a;i++){ ^