Main.cc: In function 'int anm(int)': Main.cc:5:20: error: 'c' was not declared in this scope for(int i=1;i<=c;i++){ ^