/ new_bzoj /

记录详情

Accepted

foo.cc: In function 'void dfs(int)':
foo.cc:15:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   15 |     for(int i=0;i<G[u].size();i++)
      |                 ~^~~~~~~~~~~~
foo.cc: In function 'void rdfs(int)':
foo.cc:26:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   26 |     for(int i=0;i<rG[u].size();i++)
      |                 ~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:55:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wformat=]
   55 |     printf("%d",cmp[cnt].size());
      |             ~^  ~~~~~~~~~~~~~~~
      |              |               |
      |              int             std::vector<int>::size_type {aka long unsigned int}
      |             %ld
foo.cc:31:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   31 |     scanf("%d%d",&n,&m);
      |     ~~~~~^~~~~~~~~~~~~~
foo.cc:35:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   35 |         scanf("%d%d",&x,&y);
      |         ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 6ms 4.0 MiB
#2 Accepted 6ms 4.0 MiB
#3 Accepted 11ms 5.5 MiB
#4 Accepted 11ms 5.5 MiB
#5 Accepted 10ms 5.25 MiB
#6 Accepted 5ms 4.0 MiB
#7 Accepted 6ms 4.0 MiB
#8 Accepted 7ms 4.125 MiB
#9 Accepted 34ms 4.812 MiB
#10 Accepted 6ms 4.125 MiB
#11 Accepted 6ms 4.0 MiB
#12 Accepted 6ms 4.0 MiB

信息

递交者
类型
递交
题目
受欢迎的牛
语言
C++
递交时间
2022-01-07 20:10:29
评测时间
2022-01-07 20:10:30
评测机
分数
100
总耗时
121ms
峰值内存
5.5 MiB