0_0_36237395_20113.cpp: In function 'int main()': 0_0_36237395_20113.cpp:24:9: error: 'else' without a previous 'if' else if(n == 1) cout << 2 << endl; ^