Main.cc: In function 'int main()': Main.cc:7:15: error: 'i' was not declared in this scope a=(i/10)%10; ^