foo.cc: In function 'void spfa()':
foo.cc:41:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < G[u].size(); i++) {
~~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:55:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%lld %lld %lld", &n, &m, &s);
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:57:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%lld %lld %lld", &u, &v, &w);
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。