/ Vijos /

记录详情

Accepted

foo.cc: In member function 'void MCMF::init(int)':
foo.cc:38:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   38 |         for (int i = 0; i < n; i += 1)G[i].clear(); edges.clear();
      |         ^~~
foo.cc:38:53: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   38 |         for (int i = 0; i < n; i += 1)G[i].clear(); edges.clear();
      |                                                     ^~~~~
foo.cc: In member function 'bool MCMF::BellmanFord(int, int, int&, int&)':
foo.cc:59:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   59 |             for (int i = 0; i < G[u].size(); i += 1){
      |                             ~~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:97:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   97 |     scanf("%d %d %d %d %d %d", &n, &a, &b, &f, &fa, &fb);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:101:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  101 |         scanf("%d", &tmp);
      |         ~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 1ms 396.0 KiB
#3 Accepted 2ms 512.0 KiB
#4 Accepted 3ms 512.0 KiB
#5 Accepted 2ms 512.0 KiB

信息

递交者
类型
递交
题目
P1552 餐巾纸引发的血案
语言
C++
递交时间
2022-07-19 17:51:24
评测时间
2022-07-19 17:51:24
评测机
分数
100
总耗时
12ms
峰值内存
512.0 KiB