0_0_29023370_16186.cpp: In function 'int main()': 0_0_29023370_16186.cpp:8:18: error: 'n' was not declared in this scope cout<<a+(n-a)/2<<endl; ^