Main.cc: In function 'int main()': Main.cc:12:13: error: 'z' was not declared in this scope z=n-x-y; ^ Main.cc:20:5: error: expected ';' before 'return' return 0; ^