/ Vijos /

记录详情

Compile Error

/in/foo.cc:10:14: error: array bound is not an integer constant before ']' token
 }flow[max_n+1];
              ^
/in/foo.cc:12:15: error: array bound is not an integer constant before ']' token
 int be[max_n+1];
               ^
/in/foo.cc:13:14: error: array bound is not an integer constant before ']' token
 int v[max_n+1];
              ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:22:7: error: expected unqualified-id before '[' token
   flow[num].be = c;
       ^
/in/foo.cc:23:7: error: expected unqualified-id before '[' token
   flow[num].v = v;
       ^
/in/foo.cc:28:3: error: 'be' was not declared in this scope
   be[i] = vv*flow[num].be;
   ^~
/in/foo.cc:28:18: error: expected primary-expression before '[' token
   be[i] = vv*flow[num].be;
                  ^
/in/foo.cc:29:6: error: invalid types 'int[int]' for array subscript
   v[i] = vv + vv*flow[num].v;
      ^
/in/foo.cc:29:22: error: expected primary-expression before '[' token
   v[i] = vv + vv*flow[num].v;
                      ^
/in/foo.cc:33:26: error: invalid types 'int[int]' for array subscript
   for(int j = m; j >= v[i]; j--) {
                          ^
/in/foo.cc:34:34: error: invalid types 'int[int]' for array subscript
    bag[j] = max(bag[j], bag[j-v[i]]+be[i]);
                                  ^
/in/foo.cc:34:37: error: 'be' was not declared in this scope
    bag[j] = max(bag[j], bag[j-v[i]]+be[i]);
                                     ^~

信息

递交者
类型
递交
题目
P1407 古韵之刺绣
语言
C++
递交时间
2019-08-19 16:52:09
评测时间
2019-08-19 16:52:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes