Main.cc: In function 'int main()': Main.cc:6:19: error: 'n' was not declared in this scope cin >> a >> b >> n; ^