/ 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/cc3ENbfF.o: In function `main':
foo.cc:(.text.startup+0xd2): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 12ms 36.305 MiB
#2 Accepted 12ms 34.301 MiB
#3 Accepted 19ms 36.789 MiB
#4 Accepted 19ms 36.684 MiB
#5 Accepted 19ms 36.668 MiB
#6 Accepted 19ms 36.785 MiB
#7 Accepted 19ms 34.59 MiB
#8 Accepted 19ms 34.559 MiB
#9 Accepted 18ms 34.57 MiB
#10 Accepted 19ms 34.695 MiB
#11 Accepted 19ms 36.676 MiB
#12 Accepted 19ms 36.676 MiB
#13 Accepted 132ms 39.457 MiB
#14 Accepted 142ms 37.484 MiB
#15 Accepted 112ms 39.965 MiB
#16 Accepted 106ms 40.094 MiB
#17 Accepted 91ms 36.32 MiB
#18 Accepted 39ms 36.945 MiB
#19 Accepted 116ms 38.0 MiB
#20 Accepted 116ms 37.781 MiB

信息

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