记录详情

Accepted

foo.cc: In function ‘int main()’:
foo.cc:37:21: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
   37 |                 gets(s);
      |                 ~~~~^~~
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/bitset:52,
                 from stdc++.h:52:
/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:43:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
   43 |       if(bz[i][j])
      |       ^~
foo.cc:45:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
   45 |         printf("%d",num);
      |         ^~~~~~
foo.cc:30:21: warning: unused variable ‘ch’ [-Wunused-variable]
   30 |         char s[100],ch;
      |                     ^~
/nix/binutils-2.43.1/bin/ld: /tmp/ccrWMPjW.o: in function `main':
foo.cc:(.text.startup+0xb4): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 2ms 536.0 KiB
#2 Accepted 3ms 348.0 KiB
#3 Accepted 2ms 536.0 KiB
#4 Accepted 3ms 536.0 KiB
#5 Accepted 3ms 536.0 KiB
#6 Accepted 3ms 536.0 KiB
#7 Accepted 2ms 536.0 KiB
#8 Accepted 2ms 536.0 KiB
#9 Accepted 2ms 536.0 KiB
#10 Accepted 3ms 536.0 KiB

信息

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