0_0_17095806_7329.cpp: In function 'int main()': 0_0_17095806_7329.cpp:28:29: error: 'i' was not declared in this scope int ans = (n==1 ? a[i]!=0 : 1); ^