记录详情

Accepted

foo.cc: In function 'void tarjan(int)':
foo.cc:21:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   21 | for (int i = 0; i < e[u].size(); ++i) {
      |                 ~~^~~~~~~~~~~~~
foo.cc: In function 'void upd()':
foo.cc:47:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   47 | for (int j = 0; j < e[i].size(); ++j) {
      |                 ~~^~~~~~~~~~~~~
foo.cc: In function 'void dfs(int)':
foo.cc:56:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   56 | for (int i = 0; i < e[u].size(); ++i) {
      |                 ~~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:65:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   65 | scanf("%d%d", &n, &m);
      | ~~~~~^~~~~~~~~~~~~~~~
foo.cc:66:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   66 | for (int i = 1; i <= n; ++i) scanf("%d", w + i);
      |                              ~~~~~^~~~~~~~~~~~~
foo.cc:69:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   69 | scanf("%d%d", &u, &v);
      | ~~~~~^~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 896.0 KiB
#2 Accepted 2ms 1.0 MiB
#3 Accepted 2ms 896.0 KiB
#4 Accepted 2ms 896.0 KiB
#5 Accepted 2ms 896.0 KiB
#6 Accepted 5ms 768.0 KiB
#7 Accepted 2ms 896.0 KiB
#8 Accepted 2ms 896.0 KiB
#9 Accepted 3ms 768.0 KiB
#10 Accepted 4ms 896.0 KiB

信息

递交者
类型
递交
题目
奶牛吃草(这是一道附加题...)
语言
C++
递交时间
2022-08-05 11:20:41
评测时间
2022-08-05 11:20:41
评测机
分数
100
总耗时
32ms
峰值内存
1.0 MiB