/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int ready()':
/in/foo.cc:15:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(s[i-1]=='('||i==1)
   ^~
/in/foo.cc:17:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    t[++j]=s[i];
    ^
/in/foo.cc: In function 'void init()':
/in/foo.cc:81:2: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(s+1);
  ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
                 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:81:10: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(s+1);
          ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
                 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:85:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  while(gets(s+1)){
        ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
                 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:85:16: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  while(gets(s+1)){
                ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
                 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 first(char)':
/in/foo.cc:44:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/tmp/ccnA37yc.o: In function `init()':
foo.cc:(.text+0xaf8): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Runtime Error 3ms 372.0 KiB
#2 Runtime Error 3ms 376.0 KiB
#3 Runtime Error 3ms 384.0 KiB
#4 Runtime Error 2ms 384.0 KiB
#5 Runtime Error 3ms 336.0 KiB
#6 Runtime Error 3ms 384.0 KiB
#7 Runtime Error 3ms 380.0 KiB
#8 Runtime Error 2ms 376.0 KiB
#9 Runtime Error 4ms 340.0 KiB
#10 Runtime Error 3ms 216.0 KiB

信息

递交者
类型
递交
题目
P1003 等价表达式
语言
C++
递交时间
2018-08-21 11:19:07
评测时间
2018-08-21 11:19:07
评测机
分数
0
总耗时
34ms
峰值内存
384.0 KiB