/ Vijos /

记录详情

Accepted

In file included from /usr/include/c++/6/backward/hash_map:60:0,
                 from /in/foo.cc:3:
/usr/include/c++/6/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
 #warning \
  ^~~~~~~
/in/foo.cc: In function 'PV* get_hash_id(GMap*, char*, unsigned int, int)':
/in/foo.cc:54:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if(pv->encodeValue == encodeValue) {
            ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:117:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
         gets(buffer);
         ^~~~
In file included from /in/foo.cc:2:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:117:20: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
         gets(buffer);
                    ^
In file included from /in/foo.cc:2:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:122:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
         gets(buffer);
         ^~~~
In file included from /in/foo.cc:2:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:122:20: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
         gets(buffer);
                    ^
In file included from /in/foo.cc:2:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:178:58: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
             if(prefix_len == 0 || prefix[k] == d_cArr[j] && ++k) {
                                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/tmp/ccXHjK9B.o: In function `main':
foo.cc:(.text.startup+0xd2): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 12ms 34.305 MiB
#2 Accepted 12ms 34.293 MiB
#3 Accepted 18ms 34.793 MiB
#4 Accepted 19ms 34.789 MiB
#5 Accepted 19ms 36.664 MiB
#6 Accepted 19ms 36.781 MiB
#7 Accepted 20ms 34.59 MiB
#8 Accepted 21ms 36.562 MiB
#9 Accepted 18ms 34.57 MiB
#10 Accepted 19ms 34.691 MiB
#11 Accepted 20ms 36.68 MiB
#12 Accepted 20ms 34.68 MiB
#13 Accepted 169ms 39.496 MiB
#14 Accepted 190ms 37.445 MiB
#15 Accepted 146ms 37.961 MiB
#16 Accepted 149ms 40.09 MiB
#17 Accepted 113ms 36.316 MiB
#18 Accepted 44ms 34.965 MiB
#19 Accepted 137ms 37.996 MiB
#20 Accepted 138ms 39.781 MiB

信息

递交者
类型
递交
题目
P1960 双旋转字符串
语言
C++
递交时间
2020-05-14 19:08:01
评测时间
2020-05-14 19:08:01
评测机
分数
100
总耗时
1312ms
峰值内存
40.09 MiB