/ Vijos /

记录详情

Wrong Answer

foo.cpp: In function 'void Tarjan(int)':
foo.cpp:64:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < G[u].size(); i += 1){
                  ~~^~~~~~~~~~~~~
foo.cpp: In function 'int main()':
foo.cpp:114:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (int i = 1; i <= n; i += 1) us.insert(find(i));ansa = us.size();
  ^~~
foo.cpp:114:53: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for (int i = 1; i <= n; i += 1) us.insert(find(i));ansa = us.size();
                                                     ^~~~
foo.cpp:119:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int j = 0; j < G[i].size(); i += 1){
                   ~~^~~~~~~~~~~~~
foo.cpp: In function 'void initp()':
foo.cpp:35:42: warning: iteration 110 invokes undefined behavior [-Waggressive-loop-optimizations]
  for (int i = 0; i <= maxn; i += 1) p[i] = i;
                                     ~~~~~^~~
foo.cpp:35:20: note: within this loop
  for (int i = 0; i <= maxn; i += 1) p[i] = i;
                  ~~^~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 0ms 1.031 MiB
#2 Wrong Answer 15ms 1.031 MiB
#3 Wrong Answer 0ms 1.027 MiB
#4 Wrong Answer 0ms 1.031 MiB
#5 Wrong Answer 0ms 1.023 MiB
#6 Wrong Answer 0ms 1.023 MiB
#7 Wrong Answer 0ms 1.031 MiB
#8 Wrong Answer 0ms 1.031 MiB
#9 Wrong Answer 0ms 1.035 MiB
#10 Wrong Answer 0ms 1.039 MiB
#11 Wrong Answer 15ms 1.055 MiB

信息

递交者
类型
递交
题目
P1595 学校网络
语言
C++
递交时间
2017-03-11 21:40:38
评测时间
2017-03-11 21:40:38
评测机
分数
0
总耗时
30ms
峰值内存
1.055 MiB