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]
}
^