/ 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/ccpNdqSd.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 13ms 34.316 MiB
#3 Accepted 20ms 36.793 MiB
#4 Accepted 19ms 34.758 MiB
#5 Accepted 20ms 36.664 MiB
#6 Accepted 19ms 34.781 MiB
#7 Accepted 20ms 34.59 MiB
#8 Accepted 20ms 34.559 MiB
#9 Accepted 19ms 36.57 MiB
#10 Accepted 19ms 34.691 MiB
#11 Accepted 19ms 34.676 MiB
#12 Accepted 20ms 36.68 MiB
#13 Accepted 202ms 39.5 MiB
#14 Accepted 212ms 37.523 MiB
#15 Accepted 125ms 39.953 MiB
#16 Accepted 124ms 36.051 MiB
#17 Accepted 107ms 38.316 MiB
#18 Accepted 40ms 34.977 MiB
#19 Accepted 134ms 39.996 MiB
#20 Accepted 133ms 39.781 MiB

信息

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