/ Vijos /

记录详情

Time Exceeded

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)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 716ms 51.754 MiB
#2 Time Exceeded ≥2162ms ≥391.242 MiB
#3 Time Exceeded ≥2127ms ≥391.242 MiB
#4 Time Exceeded ≥2121ms ≥382.141 MiB
#5 Time Exceeded ≥2126ms ≥382.242 MiB
#6 Accepted 411ms 51.867 MiB
#7 Accepted 488ms 51.867 MiB
#8 Time Exceeded ≥2130ms ≥391.117 MiB
#9 Time Exceeded ≥2129ms ≥391.367 MiB
#10 Time Exceeded ≥2126ms ≥391.242 MiB

信息

递交者
类型
递交
题目
P2020 小Q的苹果树
语言
C++
递交时间
2021-12-19 16:36:11
评测时间
2021-12-19 16:36:11
评测机
分数
30
总耗时
≥16540ms
峰值内存
≥391.367 MiB