0_0_15142032_20415.cpp: In function 'int main()': 0_0_15142032_20415.cpp:41:20: error: 'z' was not declared in this scope cout << a[0]+b[z]-2 <<endl; ^