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