/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'bool jump()':
/in/foo.cc:18:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
         gets(prog);
         ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:18:18: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
         gets(prog);
                  ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:24:33: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
                     while (n--) gets(prog);
                                 ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:24:42: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
                     while (n--) gets(prog);
                                          ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc: In function 'int solve()':
/in/foo.cc:47:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
         gets(program);
         ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:47:21: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
         gets(program);
                     ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:53:33: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
                     while (n--) gets(program); 
                                 ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:53:45: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
                     while (n--) gets(program); 
                                             ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:62:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
             } else if (a!=N&&b!=N&&a>b||a==N&&b!=N) {
                        ~~~~~~~~~~^~~~~
/in/foo.cc:70:29: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
                 while (n--) gets(program); 
                             ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:70:41: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
                 while (n--) gets(program); 
                                         ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:39:21: warning: variable 'len' set but not used [-Wunused-but-set-variable]
     int c, stk,cnt, len;
                     ^~~
/tmp/ccf7WWcp.o: In function `jump()':
foo.cc:(.text+0x53): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 3ms 352.0 KiB
#2 Accepted 5ms 256.0 KiB
#3 Accepted 7ms 256.0 KiB
#4 Accepted 3ms 372.0 KiB
#5 Accepted 4ms 376.0 KiB
#6 Accepted 2ms 364.0 KiB
#7 Accepted 3ms 352.0 KiB
#8 Accepted 2ms 344.0 KiB
#9 Accepted 3ms 352.0 KiB
#10 Accepted 4ms 348.0 KiB

信息

递交者
类型
递交
题目
P2029 时间复杂度
语言
C++
递交时间
2018-04-15 12:07:18
评测时间
2018-04-15 12:07:18
评测机
分数
100
总耗时
42ms
峰值内存
376.0 KiB