社区讨论
为啥我的程序编译信息中出现了不属于我程序的warning啊
P3596[POI 2015 R3] 高速公路现代化 Highway modernization参与者 16已保存回复 16
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 16 条
- 当前快照
- 1 份
- 快照标识符
- @mi6yayxf
- 此快照首次捕获于
- 2025/11/20 12:48 4 个月前
- 此快照最后确认于
- 2025/11/20 15:29 4 个月前
rt
编译信息如下
CPP/tmp/tmpw74s4291/src: 在函数‘void dfs(int, int)’中:
/tmp/tmpw74s4291/src:12:9: 警告:this ‘if’ clause does not guard... [-Wmisleading-indentation]
if(dis[v]>maxd) maxd=dis[v],po=v;dfs(v,x);
^~
/tmp/tmpw74s4291/src:12:42: 附注:...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if(dis[v]>maxd) maxd=dis[v],po=v;dfs(v,x);
^~~
/tmp/tmpw74s4291/src:16:9: 警告:this ‘if’ clause does not guard... [-Wmisleading-indentation]
if(dis[v]>maxd) maxd=dis[v],po=v;dfs(v,x);
^~
/tmp/tmpw74s4291/src:16:42: 附注:...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if(dis[v]>maxd) maxd=dis[v],po=v;dfs(v,x);
^~~
回复
共 16 条回复,欢迎继续交流。
正在加载回复...