0_0_32041294_18914.cpp: In function 'void bag()': 0_0_32041294_18914.cpp:53:6: error: 'k' was not declared in this scope a[k+1] = -1; ^