0_0_16927385_20397.cpp: In function 'int main()': 0_0_16927385_20397.cpp:21:13: error: 'used2' was not declared in this scope if(used1&&used2) cout << "YES" << endl; ^