Main.cc: In function 'int main()': Main.cc:15:11: error: 'i' was not declared in this scope a += he(i); ^