/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'int add(int, int)':
/in/foo.cc:11:69: warning: no return statement in function returning non-void [-Wreturn-type]
 inline int add(int x,int y){son[++tot]=y;nxt[tot]=lnk[x];lnk[x]=tot;}
                                                                     ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:19:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (!D[i]) q.push(i);tmp=n;
  ^~
/in/foo.cc:19:23: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if (!D[i]) q.push(i);tmp=n;
                       ^~~
/in/foo.cc:18:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (int i=1;i<=n;i++)
  ^~~
/in/foo.cc:19:23: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  if (!D[i]) q.push(i);tmp=n;
                       ^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 220.0 KiB
#2 Accepted 1ms 220.0 KiB
#3 Accepted 1ms 228.0 KiB
#4 Accepted 1ms 348.0 KiB
#5 Accepted 1ms 232.0 KiB
#6 Accepted 1ms 352.0 KiB
#7 Accepted 1ms 228.0 KiB
#8 Wrong Answer 22ms 1.848 MiB
#9 Time Exceeded ≥1001ms ≥2.086 MiB
#10 Time Exceeded ≥1005ms ≥1.832 MiB

信息

递交者
类型
递交
题目
P1790 拓扑编号
语言
C++
递交时间
2019-07-23 11:42:01
评测时间
2019-07-23 11:42:01
评测机
分数
70
总耗时
≥2040ms
峰值内存
≥2.086 MiB