记录详情

System Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:69: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/c++/6/ext/string_conversions.h:43,
                 from /usr/include/c++/6/bits/basic_string.h:5417,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 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:69: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/c++/6/ext/string_conversions.h:43,
                 from /usr/include/c++/6/bits/basic_string.h:5417,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 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:78:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   while (i<strlen(s))      
          ~^~~~~~~~~~
/in/foo.cc:95:20: warning: operation on 'p' may be undefined [-Wsequence-point]
             number[--p]=number[p + 1];//当运算完成以后左括号已经没有意义,所以将指针p移向前一个运算符,并复制所得的结果 
                    ^~~
/in/foo.cc:104:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       }while (i<strlen(s)&&s[i-1]==')');//当检测到右括号时,可以运算括号内的内容 
               ~^~~~~~~~~~
/tmp/ccerklti.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:38:50
评测时间
2019-07-15 15:38:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes