0_0_36450306_7162.cpp: In function 'int main()': 0_0_36450306_7162.cpp:33:36: error: 'sum' was not declared in this scope if (ans<a[n] && ans+x!=a[n] && sum<x) ans=1; ^