0_0_20876434_23668.cpp: In function 'int main()': 0_0_20876434_23668.cpp:31:26: error: 'flg' was not declared in this scope for(;j<=i&&sum>=k;++j,flg=1){ ^