记录详情

Compile Error

/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]});
                               ^

信息

递交者
类型
递交
题目
私斋蒸鹅心
语言
C++
递交时间
2017-08-29 11:10:41
评测时间
2017-08-29 11:10:41
评测机
分数
0
总耗时
909ms
峰值内存
125.375 MiB