记录详情

Time Exceeded

foo.cc: In function ‘void bfs(int, int)’:
foo.cc:13:9: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
   13 |         while(t<w);
      |         ^~~~~
foo.cc:14:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’
   14 |         {
      |         ^
foo.cc: In function ‘int main()’:
foo.cc:33:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
   33 |         for(int i=0;i<m;i++)
      |         ^~~
foo.cc:36:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
   36 |           for(int i=0;i<m;i++)
      |           ^~~
foo.cc:38:21: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
   38 |                 gets(t);
      |                 ~~~~^~~
In file included from /nix/gcc-13.3.0/include/c++/13.3.0/cstdio:42,
                 from /nix/gcc-13.3.0/include/c++/13.3.0/ext/string_conversions.h:45,
                 from /nix/gcc-13.3.0/include/c++/13.3.0/bits/basic_string.h:4109,
                 from /nix/gcc-13.3.0/include/c++/13.3.0/string:54,
                 from /nix/gcc-13.3.0/include/c++/13.3.0/bits/locale_classes.h:40,
                 from /nix/gcc-13.3.0/include/c++/13.3.0/bits/ios_base.h:41,
                 from /nix/gcc-13.3.0/include/c++/13.3.0/ios:44,
                 from /nix/gcc-13.3.0/include/c++/13.3.0/ostream:40,
                 from iostream:41:
/nix/glibc-2.40-66-dev/include/stdio.h:667:14: note: declared here
  667 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
foo.cc:31:21: warning: unused variable ‘ch’ [-Wunused-variable]
   31 |         char t[100],ch;
      |                     ^~
/nix/binutils-2.43.1/bin/ld: /tmp/ccmF0ufw.o: in function `main':
foo.cc:(.text.startup+0xc4): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Time Exceeded ≥1000ms ≥536.0 KiB
#2 Time Exceeded ≥1066ms ≥536.0 KiB
#3 Time Exceeded ≥1066ms ≥552.0 KiB
#4 Time Exceeded ≥1066ms ≥580.0 KiB
#5 Time Exceeded ≥1066ms ≥516.0 KiB
#6 Time Exceeded ≥1067ms ≥536.0 KiB
#7 Time Exceeded ≥1067ms ≥552.0 KiB
#8 Time Exceeded ≥1067ms ≥536.0 KiB
#9 Time Exceeded ≥1001ms ≥536.0 KiB
#10 Time Exceeded ≥1067ms ≥536.0 KiB

信息

递交者
类型
递交
题目
P1007 猴群(monkey,1s,64MB)
题目数据
下载
语言
C++
递交时间
2021-11-26 18:31:05
评测时间
2025-09-23 07:22:32
评测机
分数
0
总耗时
≥10538ms
峰值内存
≥580.0 KiB