/ 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/ccO26q6k.o: In function `main':
foo.cc:(.text.startup+0xd2): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 13ms 34.309 MiB
#2 Accepted 12ms 34.305 MiB
#3 Accepted 19ms 36.793 MiB
#4 Accepted 19ms 36.789 MiB
#5 Accepted 19ms 36.664 MiB
#6 Accepted 18ms 34.785 MiB
#7 Accepted 20ms 36.586 MiB
#8 Accepted 19ms 34.52 MiB
#9 Accepted 18ms 34.57 MiB
#10 Accepted 19ms 36.625 MiB
#11 Accepted 18ms 34.68 MiB
#12 Accepted 19ms 34.676 MiB
#13 Accepted 148ms 37.398 MiB
#14 Accepted 159ms 37.488 MiB
#15 Accepted 117ms 37.91 MiB
#16 Accepted 111ms 38.102 MiB
#17 Accepted 117ms 38.32 MiB
#18 Accepted 51ms 36.973 MiB
#19 Accepted 131ms 40.0 MiB
#20 Accepted 127ms 39.781 MiB

信息

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