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;
^