Main.cc: In function 'int main()': Main.cc:9:27: error: 'i' was not declared in this scope if(n*n*n+a*a*a+m*m*m==i) ^