/ Vijos /

记录详情

Compile Error

foo.c: In function 'search':
foo.c:48:9: error: subscripted value is neither array nor pointer nor vector
     if(a[2*i+1]!=996){
         ^
foo.c:49:9: error: subscripted value is neither array nor pointer nor vector
     if(a[2*i]==a[i]&&a[2*i+1]==a[i])
         ^
foo.c:49:17: error: subscripted value is neither array nor pointer nor vector
     if(a[2*i]==a[i]&&a[2*i+1]==a[i])
                 ^
foo.c:49:23: error: subscripted value is neither array nor pointer nor vector
     if(a[2*i]==a[i]&&a[2*i+1]==a[i])
                       ^
foo.c:49:33: error: subscripted value is neither array nor pointer nor vector
     if(a[2*i]==a[i]&&a[2*i+1]==a[i])
                                 ^
foo.c:58:9: error: subscripted value is neither array nor pointer nor vector
     if(a[i]>=a[2*i]&&a[i]>=a[2i+1]&&a[2i+1]!=996)
         ^
foo.c:58:15: error: subscripted value is neither array nor pointer nor vector
     if(a[i]>=a[2*i]&&a[i]>=a[2i+1]&&a[2i+1]!=996)
               ^
foo.c:58:23: error: subscripted value is neither array nor pointer nor vector
     if(a[i]>=a[2*i]&&a[i]>=a[2i+1]&&a[2i+1]!=996)
                       ^
foo.c:58:29: error: subscripted value is neither array nor pointer nor vector
     if(a[i]>=a[2*i]&&a[i]>=a[2i+1]&&a[2i+1]!=996)
                             ^
foo.c:58:38: error: subscripted value is neither array nor pointer nor vector
     if(a[i]>=a[2*i]&&a[i]>=a[2i+1]&&a[2i+1]!=996)
                                      ^
foo.c:60:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
      if(format=-1){format=1;} //1为大根堆 
      ^
foo.c:65:70: error: expected ';' before '}' token
       else if(i!=1)return 1; else bb=bb+1                            }
                                                                      ^
foo.c:70:10: error: subscripted value is neither array nor pointer nor vector
      if(a[i]<=a[2*i]&&a[i]<=a[2i+1]&&a[2i+1]!=996)
          ^
foo.c:70:16: error: subscripted value is neither array nor pointer nor vector
      if(a[i]<=a[2*i]&&a[i]<=a[2i+1]&&a[2i+1]!=996)
                ^
foo.c:70:24: error: subscripted value is neither array nor pointer nor vector
      if(a[i]<=a[2*i]&&a[i]<=a[2i+1]&&a[2i+1]!=996)
                        ^
foo.c:70:30: error: subscripted value is neither array nor pointer nor vector
      if(a[i]<=a[2*i]&&a[i]<=a[2i+1]&&a[2i+1]!=996)
                              ^
foo.c:70:39: error: subscripted value is neither array nor pointer nor vector
      if(a[i]<=a[2*i]&&a[i]<=a[2i+1]&&a[2i+1]!=996)
                                       ^
foo.c:72:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
      if(format=-1){format=10;} //10为小根堆 
      ^
foo.c:77:52: error: expected ';' before '}' token
       else if(i!=1)return 10; else bb=bb+10        }
                                                    ^
foo.c: At top level:
foo.c:82:6: error: expected identifier or '(' before 'if'
      if(a[i]<=a[2*i]&&a[i]>=a[2i+1]&&a[2i+1]!=P)
      ^
foo.c:92:11: error: expected identifier or '(' before '}' token
      }  } }                                      //end
           ^
foo.c:94:11: error: expected identifier or '(' before 'if'
           if(a[i]>=a[2*i]&&a[i]<=a[2i+1]&&a[2i+1]!=P)
           ^
foo.c:104:11: error: expected identifier or '(' before '}' token
      }  } }                                      //end
           ^
foo.c:107:6: error: expected identifier or '(' before '}' token
      }
      ^
foo.c:109:6: error: expected identifier or '(' before 'if'
      if(a[2i]!=996&&a[2i+1]==996)
      ^
foo.c:117:5: error: expected identifier or '(' before 'if'
     if(i==1)return bb; 
     ^
foo.c:119:1: error: expected identifier or '(' before '}' token
 }
 ^
foo.c: In function 'main':
foo.c:28:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
foo.c: In function 'search':
foo.c:80:6: warning: control reaches end of non-void function [-Wreturn-type]
      }  }}               

信息

递交者
类型
递交
题目
P1897 学姐吃牛排
语言
C
递交时间
2014-11-04 20:49:18
评测时间
2014-11-04 20:49:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes