Main.cc: In function 'int main()': Main.cc:6:15: error: 'i' cannot be used as a function sum+=i*i(i+1); ^