harbingers.cpp: In function 'int main()':
harbingers.cpp:80:38: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
80 | for(int i = 2; i <= n; ++i) scanf("%d%d", S + i, V + i);
| ~^ ~~~~~
| | |
| int* ll* {aka long long int*}
| %lld
harbingers.cpp:80:40: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'll*' {aka 'long long int*'} [-Wformat=]
80 | for(int i = 2; i <= n; ++i) scanf("%d%d", S + i, V + i);
| ~^ ~~~~~
| | |
| int* ll* {aka long long int*}
| %lld
harbingers.cpp:73:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
73 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
harbingers.cpp:76:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
76 | scanf("%d%d%d", &u, &v, &d);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
harbingers.cpp:80:35: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
80 | for(int i = 2; i <= n; ++i) scanf("%d%d", S + i, V + i);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~