Main.cc: In function 'int main()': Main.cc:5:11: warning: right operand of comma operator has no effect [-Wunused-value] cin>>n,m; ^ Main.cc:6:7: error: 'i' was not declared in this scope for(i=n;i<=m;i++){ ^