Main.cc: In function 'int main()': Main.cc:26:22: warning: operation on 'i' may be undefined [-Wsequence-point] for(int i=m;i<=n;i=i++){ ^ Main.cc:31:7: error: 'a' was not declared in this scope o+=a; ^