/in/foo.cc:17:16: error: 'cyx' was not declared in this scope
priority_queue<cyx> q;//优先队列,基本元素是cyx
^~~
/in/foo.cc:17:19: error: template argument 1 is invalid
priority_queue<cyx> q;//优先队列,基本元素是cyx
^
/in/foo.cc:17:19: error: template argument 2 is invalid
/in/foo.cc:17:19: error: template argument 3 is invalid
/in/foo.cc: In function 'void Merge()':
/in/foo.cc:27:14: error: request for member 'empty' in 'q', which is of non-class type 'int'
while(!q.empty()) q.pop();//清空优先队列
^~~~~
/in/foo.cc:27:25: error: request for member 'pop' in 'q', which is of non-class type 'int'
while(!q.empty()) q.pop();//清空优先队列
^~~
/in/foo.cc:30:29: error: request for member 'push' in 'q', which is of non-class type 'int'
for(int i=1;i<=n;++i) q.push((cyx){i,1,ans[i]+a[1]});
^~~~
/in/foo.cc:30:35: error: 'cyx' was not declared in this scope
for(int i=1;i<=n;++i) q.push((cyx){i,1,ans[i]+a[1]});
^~~
/in/foo.cc:32:14: error: request for member 'empty' in 'q', which is of non-class type 'int'
if(q.empty()) break;
^~~~~
/in/foo.cc:33:9: error: 'cyx' was not declared in this scope
cyx u=q.top();
^~~
/in/foo.cc:34:11: error: request for member 'pop' in 'q', which is of non-class type 'int'
q.pop();
^~~
/in/foo.cc:35:19: error: 'u' was not declared in this scope
w[++w[0]]=u.v;
^
/in/foo.cc:36:21: error: request for member 'push' in 'q', which is of non-class type 'int'
if(u.y<m) q.push((cyx){u.x,u.y+1,ans[u.x]+a[u.y+1]});
^~~~
/in/foo.cc:36:31: error: expected ')' before '{' token
if(u.y<m) q.push((cyx){u.x,u.y+1,ans[u.x]+a[u.y+1]});
^