foo.cc:22:39: warning: bad option '-fwhole-program' to pragma 'optimize' [-Wpragmas]
22 | #pragma GCC optimize("-fwhole-program")
| ^
foo.cc:29:41: warning: bad option '-fstrict-overflow' to pragma 'optimize' [-Wpragmas]
29 | #pragma GCC optimize("-fstrict-overflow")
| ^
foo.cc:31:41: warning: bad option '-fcse-skip-blocks' to pragma 'optimize' [-Wpragmas]
31 | #pragma GCC optimize("-fcse-skip-blocks")
| ^
foo.cc:45:51: warning: bad option '-funsafe-loop-optimizations' to pragma 'optimize' [-Wpragmas]
45 | #pragma GCC optimize("-funsafe-loop-optimizations")
| ^
foo.cc:56:35: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
56 | inline void clear(vector <int>& ve){vector <int> emp;swap(emp,ve);}//高速清空函数
| ^
foo.cc:56:35: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:56:35: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:56:35: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:61:34: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
61 | inline void dypr(int* dfn,int* dp)//dp的函数
| ^
foo.cc:61:34: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:61:34: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:61:34: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:74:23: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
74 | inline void clear_all()//清空函数
| ^
foo.cc:74:23: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:74:23: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:74:23: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc: In function 'void clear_all()':
foo.cc:76:54: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
76 | for(int i=0;i<=ctt;i++){clear(v[i]);lf[i]=line[i]=siz[i]=0;}
| ~~~~~~~^~~~~~~~~
foo.cc: At global scope:
foo.cc:80:16: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
80 | void dfs1(int x)//正着dfs,原谅我毒瘤压行
| ^
foo.cc:80:16: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:80:16: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:80:16: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc: In function 'void dfs1(int)':
foo.cc:83:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
83 | for(int i=0;i<v[x].size();i++)
| ~^~~~~~~~~~~~
foo.cc: At global scope:
foo.cc:86:16: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
86 | void dfs2(int x)//reverse后dfs
| ^
foo.cc:86:16: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:86:16: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:86:16: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:92:19: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
92 | inline void solve()
| ^
foo.cc:92:19: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:92:19: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:92:19: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:108:10: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
108 | int main()
| ^
foo.cc:108:10: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:108:10: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:108:10: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc: In function 'int main()':
foo.cc:109:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
109 | {scanf("%d",&T);for(int z=1;z<=T;z++){solve();clear_all();}return 0;}//拜拜程序~
| ~~~~~^~~~~~~~~
foo.cc: In function 'void solve()':
foo.cc:94:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
94 | scanf("%d%d",&n,&k);ctt=n;
| ~~~~~^~~~~~~~~~~~~~
foo.cc:95:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
95 | for(int i=1;i<=n;i++){scanf("%d%d%d",&fa[i],&a[i],&w[i]);lf[fa[i]]=true;}
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务