记录详情

System Error

/in/foo.cc: In function 'bool judge(char*)':
/in/foo.cc:51:27: warning: 'sizeof' on array function parameter 's' will return size of 'char*' [-Wsizeof-array-argument]
     for(int i=0;i<sizeof(s);i++)
                           ^
/in/foo.cc:48:23: note: declared here
 bool judge(char s[2506])
                       ^
/in/foo.cc:51:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<sizeof(s);i++)
                 ~^~~~~~~~
/in/foo.cc:50:15: warning: unused variable 'i' [-Wunused-variable]
     int top=0,i=0;
               ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:66:5: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     gets(s);
     ^~~~
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:66:11: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     gets(s);
           ^
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:75:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   while (i<strlen(s))      
          ~^~~~~~~~~~
/in/foo.cc:92:19: warning: operation on 'p' may be undefined [-Wsequence-point]
             shuzi[--p]=shuzi[p + 1]; 
                   ^~~
/in/foo.cc:101:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       }while (i<strlen(s)&&s[i-1]==')'); 
               ~^~~~~~~~~~
/tmp/ccJUaQl8.o: In function `main':
foo.cc:(.text.startup+0x10): warning: the `gets' function is dangerous and should not be used.
BadZipFile('File is not a zip file',)

信息

递交者
类型
递交
题目
P1000 中缀表达式值
语言
C++
递交时间
2019-07-15 15:42:13
评测时间
2019-07-15 15:42:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes