/ 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/ccvk0Sqp.o: In function `main':
foo.cc:(.text.startup+0xd2): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 13ms 36.293 MiB
#2 Accepted 12ms 32.305 MiB
#3 Accepted 19ms 32.789 MiB
#4 Accepted 18ms 32.676 MiB
#5 Accepted 19ms 34.707 MiB
#6 Accepted 19ms 34.785 MiB
#7 Accepted 19ms 34.547 MiB
#8 Accepted 20ms 34.551 MiB
#9 Accepted 19ms 34.566 MiB
#10 Accepted 19ms 34.691 MiB
#11 Accepted 21ms 36.676 MiB
#12 Accepted 19ms 34.676 MiB
#13 Accepted 185ms 37.395 MiB
#14 Accepted 208ms 39.488 MiB
#15 Accepted 209ms 37.969 MiB
#16 Accepted 205ms 36.051 MiB
#17 Accepted 145ms 36.316 MiB
#18 Accepted 51ms 34.961 MiB
#19 Accepted 199ms 40.0 MiB
#20 Accepted 188ms 39.785 MiB

信息

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