lightningrod.cpp:14:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
14 | main(){
| ^~~~
lightningrod.cpp: In function 'int main()':
lightningrod.cpp:15:10: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
15 | scanf("%d",&n);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
lightningrod.cpp:17:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
17 | scanf("%d%d",&x[i],&y[i]);
| ~^ ~~~~~
| | |
| int* long long int*
| %lld
lightningrod.cpp:17:13: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
17 | scanf("%d%d",&x[i],&y[i]);
| ~^ ~~~~~
| | |
| int* long long int*
| %lld
lightningrod.cpp:62:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
62 | printf("%d",ans);
| ~^ ~~~
| | |
| | long long int
| int
| %lld
lightningrod.cpp:15:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
lightningrod.cpp:17:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | scanf("%d%d",&x[i],&y[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~