/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void wer(T)':
/in/foo.cc:18:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     while(z[++Z]=(x%10)^48,x/=10);if(y)z[++Z]='-';
     ^~~~~
/in/foo.cc:18:35: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
     while(z[++Z]=(x%10)^48,x/=10);if(y)z[++Z]='-';
                                   ^~
/in/foo.cc:19:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     while(sr[++C]=z[Z],--Z);sr[++C]='\n';
     ^~~~~
/in/foo.cc:19:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
     while(sr[++C]=z[Z],--Z);sr[++C]='\n';
                             ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:29:17: error: 'i' was not declared in this scope
  For(j,1,5*n)dp[i][j]=inf;
                 ^
/in/foo.cc:31:18: error: invalid operands of types 'double [5005]' and 'double' to binary 'operator+'
     if(dp[j-V[i]]+T[i]<=100.0)dp[j]=dp[j-V[i]]+T[i],ans=Max(j,ans);
        ~~~~~~~~~~^~~~~
/in/foo.cc:31:47: error: invalid operands of types 'double [5005]' and 'double' to binary 'operator+'
     if(dp[j-V[i]]+T[i]<=100.0)dp[j]=dp[j-V[i]]+T[i],ans=Max(j,ans);
                                     ~~~~~~~~~~^~~~~

信息

递交者
类型
递交
题目
P1836 HYS与七夕节大作战
语言
C++
递交时间
2018-09-11 19:44:13
评测时间
2018-09-11 19:44:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes