kyoto.cpp:13:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
13 | main(){
| ^~~~
kyoto.cpp: In function 'int main()':
kyoto.cpp:37:20: warning: unused variable 'd' [-Wunused-variable]
37 | double d = cur.fi;
| ^
kyoto.cpp:60:40: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
60 | printf("adding W edge %d->%d, length %d and cost %d\n",l,r,r-l,a[*x.rbegin()]);
| ~^ ~
| | |
| int long long int
| %lld
kyoto.cpp:60:44: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
60 | printf("adding W edge %d->%d, length %d and cost %d\n",l,r,r-l,a[*x.rbegin()]);
| ~^ ~
| | |
| int long long int
| %lld
kyoto.cpp:60:55: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat=]
60 | printf("adding W edge %d->%d, length %d and cost %d\n",l,r,r-l,a[*x.rbegin()]);
| ~^ ~~~
| | |
| int long long int
| %lld
kyoto.cpp:60:67: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long long int' [-Wformat=]
60 | printf("adding W edge %d->%d, length %d and cost %d\n",l,r,r-l,a[*x.rbegin()]);
| ~^ ~~~~~~~~~~~~~~
| | |
| int long long int
| %lld
kyoto.cpp:54:20: warning: unused variable 'd' [-Wunused-variable]
54 | double d = cur.fi;
| ^
kyoto.cpp:14:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | scanf("%lld%lld",&n,&m);
| ~~~~~^~~~~~~~~~~~~~~~~~
kyoto.cpp:16:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | scanf("%lld",&a[i]);
| ~~~~~^~~~~~~~~~~~~~
kyoto.cpp:19:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
19 | scanf("%lld",&b[j]);
| ~~~~~^~~~~~~~~~~~~~