/ Vijos /

记录详情

Compile Error

foo.cpp:7:53: error: size of array 'f' is too large
 long long   f[MAXSIZE2][MAXSIZE2][MAXSIZE2][MAXSIZE2];
                                                     ^
foo.cpp: In function 'void init()':
foo.cpp:32:21: error: 'f' was not declared in this scope
                     f[i][j][k][l] = 0;
                     ^
foo.cpp: In function 'long long int search()':
foo.cpp:45:25: error: 'f' was not declared in this scope
                         f[i][j][k][l] = max(f[i][j][k][l], f[i-1][j][k][l] + w[p]);
                         ^
foo.cpp:47:25: error: 'f' was not declared in this scope
                         f[i][j][k][l] = max(f[i][j][k][l], f[i][j-1][k][l] + w[p]);
                         ^
foo.cpp:49:25: error: 'f' was not declared in this scope
                         f[i][j][k][l] = max(f[i][j][k][l], f[i][j][k-1][l] + w[p]);
                         ^
foo.cpp:51:25: error: 'f' was not declared in this scope
                         f[i][j][k][l] = max(f[i][j][k][l], f[i][j][k][l-1] + w[p]);
                         ^
foo.cpp:53:12: error: 'f' was not declared in this scope
     return f[ c[1] ][ c[2] ][ c[3] ][ c[4] ];
            ^
foo.cpp: In function 'int main()':
foo.cpp:58:30: warning: unknown conversion type character 'l' in format [-Wformat=]
     printf("%lld\n", search());
                              ^
foo.cpp:58:30: warning: too many arguments for format [-Wformat-extra-args]
foo.cpp: In function 'long long int search()':
foo.cpp:54:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
P1775 乌龟棋
语言
C++
递交时间
2015-11-05 08:55:11
评测时间
2015-11-05 08:55:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes