/ Vijos /

记录详情

Compile Error

/in/foo.cc:48:19: error: stray '@' in program
   program543 LV 8 @ 4月前
                   ^
/in/foo.cc:48:22: error: stray '\346' in program
   program543 LV 8 @ 4月前
                      ^
/in/foo.cc:48:23: error: stray '\234' in program
   program543 LV 8 @ 4月前
                       ^
/in/foo.cc:48:24: error: stray '\210' in program
   program543 LV 8 @ 4月前
                        ^
/in/foo.cc:48:25: error: stray '\345' in program
   program543 LV 8 @ 4月前
                         ^
/in/foo.cc:48:26: error: stray '\211' in program
   program543 LV 8 @ 4月前
                          ^
/in/foo.cc:48:27: error: stray '\215' in program
   program543 LV 8 @ 4月前
                           ^
/in/foo.cc:45:1: error: 'Copy' does not name a type
 Copy
 ^~~~
/in/foo.cc:51:5: error: redefinition of 'int n'
 int n;
     ^
/in/foo.cc:6:5: note: 'int n' previously declared here
 int n, cost[maxn], dp[maxn][3];
     ^
/in/foo.cc:63:5: error: conflicting declaration 'int root'
 int root;
     ^~~~
/in/foo.cc:7:6: note: previous declaration as 'bool root [1550]'
 bool root[maxn];
      ^~~~
/in/foo.cc: In function 'void dp(int)':
/in/foo.cc:76:16: error: 'void dp(int)' redeclared as different kind of symbol
 void dp(int now)
                ^
/in/foo.cc:6:20: note: previous declaration 'int dp [1550][3]'
 int n, cost[maxn], dp[maxn][3];
                    ^~
/in/foo.cc:81:26: error: 'dp' cannot be used as a function
     dp(tree[now].child[i]);
                          ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:100:5: error: redefinition of 'int main()'
 int main()
     ^~~~
/in/foo.cc:23:5: note: 'int main()' previously defined here
 int main() {
     ^~~~
/in/foo.cc:120:10: error: incompatible types in assignment of 'int' to 'bool [1550]'
     root=i;
          ^
/in/foo.cc:128:12: error: 'dp' cannot be used as a function
     dp(root);
            ^
/in/foo.cc:129:29: error: invalid types 'long long int [1501][4][bool [1550]]' for array subscript
     printf("%d\n",min(f[root][1],f[root][2]));
                             ^
/in/foo.cc:129:40: error: invalid types 'long long int [1501][4][bool [1550]]' for array subscript
     printf("%d\n",min(f[root][1],f[root][2]));
                                        ^

信息

递交者
类型
递交
题目
P1144 小胖守皇宫
语言
C++
递交时间
2018-02-02 09:49:42
评测时间
2018-02-02 09:49:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes