0_0_37881332_31276.cpp:3:5: error: 'maxn' was not declared in this scope
} e[maxn];
^
0_0_37881332_31276.cpp:7:8: error: 'maxn' was not declared in this scope
int mp[maxn][4];
^
0_0_37881332_31276.cpp: In function 'int main()':
0_0_37881332_31276.cpp:9:13: error: 'read' was not declared in this scope
int _=read();
^
0_0_37881332_31276.cpp:12:10: error: 'mp' was not declared in this scope
memset(mp,-inf,sizeof mp);
^
0_0_37881332_31276.cpp:12:14: error: 'inf' was not declared in this scope
memset(mp,-inf,sizeof mp);
^
0_0_37881332_31276.cpp:12:27: error: 'memset' was not declared in this scope
memset(mp,-inf,sizeof mp);
^
0_0_37881332_31276.cpp:13:11: error: 'cin' was not declared in this scope
int n,q;cin>>n>>q;
^
0_0_37881332_31276.cpp:14:32: error: 'e' was not declared in this scope
for(int i=1; i<=n; i++) cin>>e[i].x>>e[i].y>>e[i].w;
^
0_0_37881332_31276.cpp:15:8: error: 'e' was not declared in this scope
sort(e+1,e+1+n,cmp);
^
0_0_37881332_31276.cpp:15:21: error: 'sort' was not declared in this scope
sort(e+1,e+1+n,cmp);
^
0_0_37881332_31276.cpp:18:30: error: 'y' was not declared in this scope
mp[i][0]=max(mp[i+1][0],x+y);
^
0_0_37881332_31276.cpp:18:31: error: 'max' was not declared in this scope
mp[i][0]=max(mp[i+1][0],x+y);
^
0_0_37881332_31276.cpp:25:22: error: 'scanf' was not declared in this scope
scanf("%d%d",&x,&y);
^
0_0_37881332_31276.cpp:30:49: error: 'max' was not declared in this scope
int d=max(max(-x-y+mp[mid][0],x-y+mp[mid][2]),max(-x+y+mp[mid][1],x+y+mp[mid][3]));
^
0_0_37881332_31276.cpp:30:86: error: 'max' was not declared in this scope
int d=max(max(-x-y+mp[mid][0],x-y+mp[mid][2]),max(-x+y+mp[mid][1],x+y+mp[mid][3]));
^
0_0_37881332_31276.cpp:30:86: error: redeclaration of '<typeprefixerror>max'
0_0_37881332_31276.cpp:30:49: note: previous declaration '<typeprefixerror>max'
int d=max(max(-x-y+mp[mid][0],x-y+mp[mid][2]),max(-x+y+mp[mid][1],x+y+mp[mid][3]));
^
0_0_37881332_31276.cpp:39:53: error: 'max' was not declared in this scope
int d=max(max(-x-y+mp[l][0],x-y+mp[l][2]),max(-x+y+mp[l][1],x+y+mp[l][3]));
^
0_0_37881332_31276.cpp:39:86: error: 'max' was not declared in this scope
int d=max(max(-x-y+mp[l][0],x-y+mp[l][2]),max(-x+y+mp[l][1],x+y+mp[l][3]));
^
0_0_37881332_31276.cpp:39:86: error: redeclaration of '<typeprefixerror>max'
0_0_37881332_31276.cpp:39:53: note: previous declaration '<typeprefixerror>max'
int d=max(max(-x-y+mp[l][0],x-y+mp[l][2]),max(-x+y+mp[l][1],x+y+mp[l][3]));
^
0_0_37881332_31276.cpp:40:27: error: 'min' was not declared in this scope
d=min(e[l].w,d);
^
0_0_37881332_31276.cpp:42:13: error: 'cout' was not declared in this scope
cout<<ans<<"\n";
^
|