Main.cc: In function 'int main()': Main.cc:6:6: error: 'i' was not declared in this scope for(i=n;i<=m;i++) ^