foo.cc: In function 'int main()':
foo.cc:12:113: error: 'max' was not declared in this scope
for(int k=1;k<=n;k++) for(int i=1;i<=n;i++) for(int j=1;j<=n;j++) if(i!=j) if(a[i][k]>0&&a[k][j]>0) a[i][j]=max(a[i][j],a[i][k]+a[k][j]);
^~~
foo.cc:12:113: note: suggested alternative: 'main'
for(int k=1;k<=n;k++) for(int i=1;i<=n;i++) for(int j=1;j<=n;j++) if(i!=j) if(a[i][k]>0&&a[k][j]>0) a[i][j]=max(a[i][j],a[i][k]+a[k][j]);
^~~
main
foo.cc:6:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n+1,&m);
~~~~~^~~~~~~~~~~~~~~~
foo.cc:9:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&x,&y,&w);
~~~~~^~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。