记录详情

Accepted

foo.cc: In function 'void bfs()':
foo.cc:40:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 if(vis[tmp]) continue;vis[tmp]=1;Q.push(tmp);
 ^~
foo.cc:40:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 if(vis[tmp]) continue;vis[tmp]=1;Q.push(tmp);
                       ^~~
foo.cc:47:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 if(vis[tmp])continue;vis[tmp]=1;Q.push(tmp);
 ^~
foo.cc:47:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 if(vis[tmp])continue;vis[tmp]=1;Q.push(tmp);
                      ^~~
foo.cc:60:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 if(vis[tmp])continue;vis[tmp]=1;Q.push(tmp);
 ^~
foo.cc:60:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 if(vis[tmp])continue;vis[tmp]=1;Q.push(tmp);
                      ^~~
foo.cc: In function 'void Init()':
foo.cc:16:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&n);
 ~~~~~^~~~~~~~~
foo.cc:18:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&a[i]);t=a[i];
 ~~~~~^~~~~~~~~~~~
foo.cc: In function 'void Work()':
foo.cc:68:30: warning: iteration 100004 invokes undefined behavior [-Waggressive-loop-optimizations]
 for(int i=1;i<=MAXN;i++)fa[i]=i;
                         ~~~~~^~
foo.cc:68:14: note: within this loop
 for(int i=1;i<=MAXN;i++)fa[i]=i;
             ~^~~~~~
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Accepted 2ms 768.0 KiB
#2 Accepted 2ms 736.0 KiB
#3 Accepted 2ms 768.0 KiB
#4 Accepted 2ms 768.0 KiB
#5 Accepted 3ms 896.0 KiB
#6 Accepted 2ms 768.0 KiB
#7 Accepted 6ms 1.25 MiB
#8 Accepted 18ms 2.91 MiB
#9 Accepted 22ms 3.406 MiB
#10 Accepted 3ms 1.047 MiB

信息

递交者
类型
递交
题目
P1131 教主的难题
语言
C++
递交时间
2021-04-17 10:54:59
评测时间
2021-04-17 10:54:59
评测机
分数
100
总耗时
67ms
峰值内存
3.406 MiB