0_0_20036972_16615.cpp: In function 'int main()': 0_0_20036972_16615.cpp:36:9: error: 'k' was not declared in this scope for(k=0;k<=a[i]&&k+j<=sum;k+=a[i]){ ^