bulldozer.cpp: In function 'bool cmp(node, node)':
bulldozer.cpp:11:21: warning: statement has no effect [-Wunused-value]
if(x.x!=y.x) x.x<y.x;
~~~^~~~
bulldozer.cpp: At global scope:
bulldozer.cpp:14:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main() {
^
bulldozer.cpp: In function 'int main()':
bulldozer.cpp:19:50: warning: division by zero [-Wdiv-by-zero]
for(i=1;i<=n;i++) if(p[i].y!=0) printf("%d",1/0);
~^~
bulldozer.cpp:17:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
bulldozer.cpp:18:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;i++) scanf("%d%d%lld",&p[i].x,&p[i].y,&p[i].w);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~