Main.cc: In function 'int main()': Main.cc:14:27: error: 'i' was not declared in this scope if(g*g*g+s*s*s+b*b*b==i){ ^