Main.cc: In function 'int main()': Main.cc:6:17: error: 'i' was not declared in this scope int g = i % 10; ^