0_0_15809680_15378.cpp:5:1: error: 'LL' does not name a type
LL a[1001];
^
0_0_15809680_15378.cpp: In function 'int main()':
0_0_15809680_15378.cpp:12:16: error: 'a' was not declared in this scope
memset(a,0,sizeof(a));
^
0_0_15809680_15378.cpp:25:13: error: 'LL' was not declared in this scope
LL res=a[1];
^
0_0_15809680_15378.cpp:26:16: error: expected ';' before 'endx'
LL endx=0;
^
0_0_15809680_15378.cpp:29:20: error: 'endx' was not declared in this scope
if(endx>=0)
^
0_0_15809680_15378.cpp:33:17: error: 'res' was not declared in this scope
res=max(res,endx);
^
0_0_15809680_15378.cpp:33:29: error: 'endx' was not declared in this scope
res=max(res,endx);
^
0_0_15809680_15378.cpp:37:17: error: 'res' was not declared in this scope
ans=res>ans?res:ans;
^
|