/ Vijos /

记录详情

Accepted

foo.cc: In function 'void spfa(int)':
foo.cc:25:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   25 |         for(int i=0;i<a[x].to.size();i++){
      |                     ~^~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:36:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   36 |     scanf("%d%d%d%d%d",&n,&k,&m,&s,&t);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:37:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   37 |     For(i,1,n) scanf("%d",&c[i]);
      |                ~~~~~^~~~~~~~~~~~
foo.cc:38:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   38 |     For(i,1,k) For(j,1,k) scanf("%d",&map[i][j]);
      |                           ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:41:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   41 |         scanf("%d%d%d",&x,&y,&z);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Accepted 2ms 384.0 KiB
#8 Accepted 5ms 384.0 KiB
#9 Accepted 4ms 512.0 KiB
#10 Accepted 3ms 512.0 KiB

信息

递交者
类型
递交
题目
P1794 文化之旅
语言
C++
递交时间
2021-12-18 16:30:11
评测时间
2021-12-18 16:30:11
评测机
分数
100
总耗时
30ms
峰值内存
512.0 KiB