/ ep /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:18:11: error: expected ')' before ';' token
     if(i=1;i<=n-1;i++) a[i+1]>=a[i],d=d+1;//特判:1~3组数据 
           ^
/in/foo.cc:18:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
/in/foo.cc:18:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if(i=1;i<=n-1;i++) a[i+1]>=a[i],d=d+1;//特判:1~3组数据 
     ^~
/in/foo.cc:18:12: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if(i=1;i<=n-1;i++) a[i+1]>=a[i],d=d+1;//特判:1~3组数据 
            ^
/in/foo.cc:18:13: warning: statement has no effect [-Wunused-value]
     if(i=1;i<=n-1;i++) a[i+1]>=a[i],d=d+1;//特判:1~3组数据 
            ~^~~~~
/in/foo.cc:18:22: error: expected ';' before ')' token
     if(i=1;i<=n-1;i++) a[i+1]>=a[i],d=d+1;//特判:1~3组数据 
                      ^

信息

递交者
类型
递交
题目
P1000 序列最大区间和
语言
C++
递交时间
2019-08-19 00:08:50
评测时间
2019-08-19 00:08:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes