/ Vijos /

记录详情

Accepted

foo.cc: In function ‘void tarjan(int, int)’:
foo.cc:12:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<edge>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   12 |     for(int i = 0; i < E[u].size(); ++i) {
      |                    ~~^~~~~~~~~~~~~
foo.cc: In function ‘void dfs(int, int)’:
foo.cc:31:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<edge>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   31 |     for(int i = 0; i < E[u].size(); ++i) {
      |                    ~~^~~~~~~~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:77:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<edge>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   77 |         for(int i = 0; i < E[u].size(); ++i) {
      |                        ~~^~~~~~~~~~~~~
foo.cc:78:17: warning: unused variable ‘v’ [-Wunused-variable]
   78 |             int v = E[u][i].to, id = E[u][i].id;
      |                 ^
# 状态 耗时 内存占用
#1 Accepted 2ms 512.0 KiB
#2 Accepted 3ms 512.0 KiB
#3 Accepted 2ms 512.0 KiB
#4 Accepted 2ms 512.0 KiB
#5 Accepted 2ms 512.0 KiB
#6 Accepted 2ms 624.0 KiB
#7 Accepted 2ms 512.0 KiB
#8 Accepted 2ms 512.0 KiB
#9 Accepted 2ms 512.0 KiB
#10 Accepted 2ms 516.0 KiB

信息

递交者
类型
递交
题目
P1325 桐桐的糖果计划
语言
C++
递交时间
2026-08-31 19:07:24
评测时间
2026-08-31 19:07:24
评测机
分数
100
总耗时
28ms
峰值内存
624.0 KiB