lightningrod.cpp: In function 'int main()':
lightningrod.cpp:21:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::size_t' {aka 'long unsigned int'} [-Wformat=]
21 | printf("%d",n-vis.count());
| ~^ ~~~~~~~~~~~~~
| | |
| int std::size_t {aka long unsigned int}
| %ld
lightningrod.cpp:15:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
lightningrod.cpp:16:27: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | for(i=1;i<=n;i++)scanf("%d %d",&x,&y),a[i].x=x+y,a[i].y=-x+y;
| ~~~~~^~~~~~~~~~~~~~~