Compile Error
/in/foo.cc: In function 'void in()':
/in/foo.cc:14:10: error: 'n' was not declared in this scope
cin>>T>>n;
^
/in/foo.cc: In function 'void go()':
/in/foo.cc:21:17: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++)
^
/in/foo.cc:22:22: error: 'struct node' has no member named 'w'
for(int j=m;j>=a[i].w;j--)
^