运行 ID: 142163

Main.cc: In function ‘int main()’:
Main.cc:20:19: error: ‘w’ was not declared in this scope
             if(j>=w[i])
                   ^