skyscraper.cpp:1:43: warning: bad option '-f Ofast' to pragma 'optimize' [-Wpragmas]
1 | #pragma GCC optimize("unroll-loops, Ofast")
| ^
skyscraper.cpp:10:25: warning: bad option '-f Ofast' to attribute 'optimize' [-Wattributes]
10 | inline void dij(int root){
| ^
skyscraper.cpp:42:14: warning: bad option '-f Ofast' to attribute 'optimize' [-Wattributes]
42 | int32_t main(){
| ^
skyscraper.cpp: In function 'int32_t main()':
skyscraper.cpp:45:16: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
45 | scanf("%I64d %I64d", &n, &m);
| ~~~~^ ~~
| | |
| int* long long int*
| %I64lld
skyscraper.cpp:45:22: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
45 | scanf("%I64d %I64d", &n, &m);
| ~~~~^ ~~
| | |
| int* long long int*
| %I64lld
skyscraper.cpp:48:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
48 | scanf("%I64d %I64d", &b[i], &p[i]);
| ~~~~^ ~~~~~
| | |
| int* long long int*
| %I64lld
skyscraper.cpp:48:26: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
48 | scanf("%I64d %I64d", &b[i], &p[i]);
| ~~~~^ ~~~~~
| | |
| int* long long int*
| %I64lld
skyscraper.cpp:52:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
52 | printf("%d\n", (dis[1] >= LLONG_MAX/2? -1 : dis[1]));
| ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| int long long int
| %lld
skyscraper.cpp:45:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
45 | scanf("%I64d %I64d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
skyscraper.cpp:48:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
48 | scanf("%I64d %I64d", &b[i], &p[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~