/ Vijos /

记录详情

Compile Error

/in/foo.cc:70:5: error: redefinition of 'int n'
 int n, k, p[200], f[2000][200];
     ^
/in/foo.cc:8:5: note: 'int n' previously declared here
 int n, k, p[200], f[2000][200];
     ^
/in/foo.cc:70:8: error: redefinition of 'int k'
 int n, k, p[200], f[2000][200];
        ^
/in/foo.cc:8:8: note: 'int k' previously declared here
 int n, k, p[200], f[2000][200];
        ^
/in/foo.cc:70:16: error: redefinition of 'int p [200]'
 int n, k, p[200], f[2000][200];
                ^
/in/foo.cc:8:11: note: 'int p [200]' previously declared here
 int n, k, p[200], f[2000][200];
           ^
/in/foo.cc:70:30: error: redefinition of 'int f [2000][200]'
 int n, k, p[200], f[2000][200];
                              ^
/in/foo.cc:8:19: note: 'int f [2000][200]' previously declared here
 int n, k, p[200], f[2000][200];
                   ^
/in/foo.cc: In function 'void init()':
/in/foo.cc:72:6: error: redefinition of 'void init()'
 void init()
      ^~~~
/in/foo.cc:10:6: note: 'void init()' previously defined here
 void init()
      ^~~~
/in/foo.cc: In function 'int mmin(int, int)':
/in/foo.cc:82:5: error: redefinition of 'int mmin(int, int)'
 int mmin(int a, int b)
     ^~~~
/in/foo.cc:20:5: note: 'int mmin(int, int)' previously defined here
 int mmin(int a, int b)
     ^~~~
/in/foo.cc: In function 'int dp(int, int, int)':
/in/foo.cc:90:5: error: redefinition of 'int dp(int, int, int)'
 int dp(int x, int y, int l)
     ^~
/in/foo.cc:28:5: note: 'int dp(int, int, int)' previously defined here
 int dp(int x, int y, int l)
     ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:119:5: error: redefinition of 'int main()'
 int main()
     ^~~~
/in/foo.cc:57:5: note: 'int main()' previously defined here
 int main()
     ^~~~

信息

递交者
类型
递交
题目
P1142 HXOS
语言
C++
递交时间
2017-07-13 14:32:14
评测时间
2017-07-13 14:32:14
评测机
分数
0
总耗时
271ms
峰值内存
34.234 MiB