记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:15:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<s.size();i++){
              ~^~~~~~~~~
foo.cc:16:12: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(b[s[i]]){
            ^
foo.cc:17:16: warning: array subscript has type 'char' [-Wchar-subscripts]
    if(!b[s[i-1]])hz+='.'; 
                ^
foo.cc:18:13: warning: array subscript has type 'char' [-Wchar-subscripts]
    if(b[s[i]]==1)a.push(s[i]);
             ^
foo.cc:19:18: warning: array subscript has type 'char' [-Wchar-subscripts]
    else if(b[s[i]]==5){
                  ^
foo.cc:29:33: warning: array subscript has type 'char' [-Wchar-subscripts]
      while(!a.empty()&&b[a.top()]>=b[s[i]]){
                                 ^
foo.cc:29:42: warning: array subscript has type 'char' [-Wchar-subscripts]
      while(!a.empty()&&b[a.top()]>=b[s[i]]){
                                          ^
foo.cc:48:15: warning: operation on 'top' may be undefined [-Wsequence-point]
    case '^':z[--top]=pow(z[top-1],z[top+1]);break;
               ^~~~~
foo.cc:48:15: warning: operation on 'top' may be undefined [-Wsequence-point]
foo.cc:49:15: warning: operation on 'top' may be undefined [-Wsequence-point]
    case '+':z[--top]+=z[top+1];break;
               ^~~~~
foo.cc:50:15: warning: operation on 'top' may be undefined [-Wsequence-point]
    case '-':z[--top]-=z[top+1];break;
               ^~~~~
foo.cc:51:15: warning: operation on 'top' may be undefined [-Wsequence-point]
    case '/':z[--top]/=z[top+1];break;
               ^~~~~
foo.cc:52:15: warning: operation on 'top' may be undefined [-Wsequence-point]
    case '*':z[--top]*=z[top+1];break;
               ^~~~~
foo.cc:44:6: warning: unused variable 'len' [-Wunused-variable]
  int len=s.size();
      ^~~
foo.cc:45:20: warning: unused variable 'y' [-Wunused-variable]
  int i=0,top=0,x=0,y=0;
                    ^
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 2ms 384.0 KiB
#2 Runtime Error Segmentation fault 1ms 384.0 KiB
#3 Runtime Error Segmentation fault 2ms 384.0 KiB
#4 Runtime Error Segmentation fault 2ms 384.0 KiB
#5 Runtime Error Segmentation fault 2ms 384.0 KiB

信息

递交者
类型
递交
题目
计算(calc)
题目数据
下载
语言
C++
递交时间
2021-03-19 13:39:49
评测时间
2021-03-19 13:39:49
评测机
分数
0
总耗时
10ms
峰值内存
384.0 KiB