记录详情

Accepted

/in/foo.cc: In function 'void init()':
/in/foo.cc:25:4: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
    gets(a);
    ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:25:10: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
    gets(a);
          ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:31:7: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
       gets(b[i]);
       ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:31:16: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
       gets(b[i]);
                ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:35:30: warning: array subscript has type 'char' [-Wchar-subscripts]
          if (path[cur][dir[*c]] == 0)
                              ^
/in/foo.cc:35:31: warning: array subscript has type 'char' [-Wchar-subscripts]
          if (path[cur][dir[*c]] == 0)
                               ^
/in/foo.cc:36:29: warning: array subscript has type 'char' [-Wchar-subscripts]
             path[cur][dir[*c]] = ++l;
                             ^
/in/foo.cc:36:30: warning: array subscript has type 'char' [-Wchar-subscripts]
             path[cur][dir[*c]] = ++l;
                              ^
/in/foo.cc:37:32: warning: array subscript has type 'char' [-Wchar-subscripts]
          cur = path[cur][dir[*c]];
                                ^
/in/foo.cc:37:33: warning: array subscript has type 'char' [-Wchar-subscripts]
          cur = path[cur][dir[*c]];
                                 ^
/in/foo.cc: In function 'void solve()':
/in/foo.cc:77:35: warning: array subscript has type 'char' [-Wchar-subscripts]
       check[cur = path[cur][dir[*c]]] = true;
                                   ^
/in/foo.cc:77:36: warning: array subscript has type 'char' [-Wchar-subscripts]
       check[cur = path[cur][dir[*c]]] = true;
                                    ^
/in/foo.cc:87:39: warning: array subscript has type 'char' [-Wchar-subscripts]
       if (check[cur = path[cur][dir[*c]]]) 
                                       ^
/in/foo.cc:87:40: warning: array subscript has type 'char' [-Wchar-subscripts]
       if (check[cur = path[cur][dir[*c]]]) 
                                        ^
/tmp/ccEp7om8.o: In function `init()':
foo.cc:(.text+0x58): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 108ms 164.422 MiB
#2 Accepted 107ms 164.461 MiB
#3 Accepted 113ms 165.492 MiB
#4 Accepted 107ms 164.695 MiB
#5 Accepted 121ms 167.277 MiB
#6 Accepted 134ms 167.773 MiB
#7 Accepted 123ms 167.777 MiB
#8 Accepted 237ms 180.586 MiB
#9 Accepted 257ms 186.375 MiB
#10 Accepted 245ms 186.938 MiB

信息

递交者
类型
递交
题目
P1008 前缀匹配
语言
C++
递交时间
2020-02-17 11:07:35
评测时间
2020-02-17 11:08:12
评测机
分数
100
总耗时
1556ms
峰值内存
186.938 MiB