/ Vijos /

记录详情

Time Exceeded

foo.cc:23:39: warning: bad option '-fwhole-program' to pragma 'optimize' [-Wpragmas]
 #pragma GCC optimize("-fwhole-program")
                                       ^
foo.cc:32:41: warning: bad option '-fcse-skip-blocks' to pragma 'optimize' [-Wpragmas]
 #pragma GCC optimize("-fcse-skip-blocks")
                                         ^
foo.cc:46:51: warning: bad option '-funsafe-loop-optimizations' to pragma 'optimize' [-Wpragmas]
 #pragma GCC optimize("-funsafe-loop-optimizations")
                                                   ^
foo.cc:77:37: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
 inline void insert(int x,int y,int z) {
                                     ^
foo.cc:77:37: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:77:37: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:81:38: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
 inline void insert2(int x,int y,int z) {
                                      ^
foo.cc:81:38: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:81:38: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:86:29: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
 inline void dfs(int x,int fa) {
                             ^
foo.cc:86:29: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:86:29: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:103:40: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
 inline void merge(int x,int fa,int mark) {
                                        ^
foo.cc:103:40: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:103:40: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:114:25: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
 bool cmp(edge2 a,edge2 b) {
                         ^
foo.cc:114:25: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:114:25: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:117:45: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
 inline int dfs2(int x,int fa,int ban,int val) {
                                             ^
foo.cc:117:45: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:117:45: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:133:17: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
 bool check(int x) {
                 ^
foo.cc:133:17: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:133:17: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:143:43: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
 __attribute__((optimize("-O3"))) int main() {
                                           ^
foo.cc:143:43: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:143:43: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc: In function 'int main()':
foo.cc:144:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d",&n,&m);
     ~~~~~^~~~~~~~~~~~~~
foo.cc:147:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d%d%d",&x,&y,&z);
         ~~~~~^~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 24ms 23.391 MiB
#2 Accepted 24ms 23.375 MiB
#3 Accepted 24ms 23.383 MiB
#4 Accepted 26ms 23.688 MiB
#5 Accepted 36ms 24.434 MiB
#6 Accepted 62ms 25.516 MiB
#7 Accepted 194ms 28.758 MiB
#8 Accepted 390ms 34.586 MiB
#9 Accepted 744ms 46.363 MiB
#10 Time Exceeded ≥1397ms ≥82.07 MiB

信息

递交者
类型
递交
题目
P1954 越狱老虎桥
语言
C++
递交时间
2021-07-21 08:48:38
评测时间
2021-07-21 08:48:38
评测机
分数
90
总耗时
≥2926ms
峰值内存
≥82.07 MiB