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