0_0_26714079_24226.cpp: In function 'int main()': 0_0_26714079_24226.cpp:29:14: error: 'w' was not declared in this scope if(sum[n]<=w){ ^