0_0_36184104_14452.cpp:1:1: error: 'include' does not name a type
include<cstdio>
^
0_0_36184104_14452.cpp: In function 'void init(int)':
0_0_36184104_14452.cpp:9:10: error: 'd' was not declared in this scope
d[i] = m[i] = 0;
^
0_0_36184104_14452.cpp:9:17: error: 'm' was not declared in this scope
d[i] = m[i] = 0;
^
0_0_36184104_14452.cpp: In function 'int main()':
0_0_36184104_14452.cpp:14:31: error: 'scanf' was not declared in this scope
while(~scanf("%d%d",&M,&n) && n+M)
^
0_0_36184104_14452.cpp:18:26: error: 'a' was not declared in this scope
scanf("%d",&a[i]);
^
0_0_36184104_14452.cpp:24:18: error: 'd' was not declared in this scope
d[j] = Max(d[j-1]+a[j],m[j-1]+a[j]);
^
0_0_36184104_14452.cpp:24:36: error: 'a' was not declared in this scope
d[j] = Max(d[j-1]+a[j],m[j-1]+a[j]);
^
0_0_36184104_14452.cpp:4:20: note: in definition of macro 'Max'
#define Max(a,b) (a)>(b)?(a):(b)
^
0_0_36184104_14452.cpp:24:41: error: 'm' was not declared in this scope
d[j] = Max(d[j-1]+a[j],m[j-1]+a[j]);
^
0_0_36184104_14452.cpp:4:24: note: in definition of macro 'Max'
#define Max(a,b) (a)>(b)?(a):(b)
^
0_0_36184104_14452.cpp:29:27: error: 'printf' was not declared in this scope
printf("%d\n",ans);
^
|