0_0_32669806_12888.cpp: In function 'int main()':
0_0_32669806_12888.cpp:2:29: error: 'm' was not declared in this scope
while (~scanf("%d %d", &m, &n)) {
^
0_0_32669806_12888.cpp:2:33: error: 'n' was not declared in this scope
while (~scanf("%d %d", &m, &n)) {
^
0_0_32669806_12888.cpp:2:34: error: 'scanf' was not declared in this scope
while (~scanf("%d %d", &m, &n)) {
^
0_0_32669806_12888.cpp:4:25: error: 'arr' was not declared in this scope
scanf("%d", arr+i);
^
0_0_32669806_12888.cpp:6:16: error: 'dp1' was not declared in this scope
memset(dp1, 0, sizeof(dp1));
^
0_0_32669806_12888.cpp:6:35: error: 'memset' was not declared in this scope
memset(dp1, 0, sizeof(dp1));
^
0_0_32669806_12888.cpp:7:16: error: 'dp2' was not declared in this scope
memset(dp2, 0, sizeof(dp2));
^
0_0_32669806_12888.cpp:11:19: error: 'NINF' was not declared in this scope
Max = NINF;
^
0_0_32669806_12888.cpp:14:41: error: 'arr' was not declared in this scope
dp2[j] = dp1[j-1] + arr[j];
^
0_0_32669806_12888.cpp:16:52: error: 'max' was not declared in this scope
dp2[j] = max(dp2[j-1], dp1[j-1]) + arr[j];
^
0_0_32669806_12888.cpp:16:56: error: 'arr' was not declared in this scope
dp2[j] = max(dp2[j-1], dp1[j-1]) + arr[j];
^
0_0_32669806_12888.cpp:24:27: error: 'printf' was not declared in this scope
printf("%d\n", Max);
^
|