/ Vijos /

记录详情

Compile Error

foo.cpp:9:17: error: 'maxn' was not declared in this scope
 int n,s,e,ans,f[maxn];
                 ^
foo.cpp:20:22: error: 'maxn' was not declared in this scope
  return s<a.s; } }da[maxn]; void dp(){ priority_queue<data>Q;
                      ^
foo.cpp: In function 'void dp()':
foo.cpp:22:10: error: 'da' was not declared in this scope
  for(a=1;da[a].s<=s;a++){
          ^
foo.cpp:27:5: error: 'da' was not declared in this scope
  if(da[i].s>e)break;
     ^
foo.cpp:28:32: error: 'da' was not declared in this scope
  while(!Q.empty()&&Q.top().r+1<da[i].s){ Q.pop(); } if(Q.empty())return; int val=Q.top().val+da[i].c; if(da[i].e<e){ if(da[i].e>Q.top().r)Q.push((data){da[i].e,val});
                                ^
foo.cpp:28:94: error: 'da' was not declared in this scope
  while(!Q.empty()&&Q.top().r+1<da[i].s){ Q.pop(); } if(Q.empty())return; int val=Q.top().val+da[i].c; if(da[i].e<e){ if(da[i].e>Q.top().r)Q.push((data){da[i].e,val});
                                                                                              ^
foo.cpp: In function 'int main()':
foo.cpp:37:18: error: 'da' was not declared in this scope
  scanf("%d%d%d",&da[i].s,&da[i].e,&da[i].c);
                  ^
foo.cpp:39:7: error: 'da' was not declared in this scope
  sort(da+1,da+n+1);
       ^
foo.cpp:7:26: error: expected ';' before 'define'
 #define inf 0x7fffffff/2 define maxn 10010
                          ^
foo.cpp:51:6: note: in expansion of macro 'inf'
  ans=inf;
      ^

信息

递交者
类型
递交
题目
P1404 遭遇战
语言
C++
递交时间
2015-11-04 22:31:01
评测时间
2015-11-04 22:31:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes