/in/foo.cc:118:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main()
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:120:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d%d",&n,&m);
^
/in/foo.cc:120:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:125:50: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d%d%d",&edge[i].x,&edge[i].y,&edge[i].v);
^
/in/foo.cc:125:50: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:125:50: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
/in/foo.cc:133:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("Cost: %d\n",ans);
^
/in/foo.cc:151:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("Cost: %d",minn);
^