0_0_20912264_22502.cpp:2:10: error: expected primary-expression before '=' token
#define N=10000020;
^
0_0_20912264_22502.cpp:6:9: note: in expansion of macro 'N'
int n,p[N];
^
0_0_20912264_22502.cpp:2:19: error: expected ']' before ';' token
#define N=10000020;
^
0_0_20912264_22502.cpp:6:9: note: in expansion of macro 'N'
int n,p[N];
^
0_0_20912264_22502.cpp:6:10: error: expected unqualified-id before ']' token
int n,p[N];
^
0_0_20912264_22502.cpp:2:10: error: expected primary-expression before '=' token
#define N=10000020;
^
0_0_20912264_22502.cpp:7:7: note: in expansion of macro 'N'
int s[N],str[N];
^
0_0_20912264_22502.cpp:2:19: error: expected ']' before ';' token
#define N=10000020;
^
0_0_20912264_22502.cpp:7:7: note: in expansion of macro 'N'
int s[N],str[N];
^
0_0_20912264_22502.cpp:7:8: error: expected unqualified-id before ']' token
int s[N],str[N];
^
0_0_20912264_22502.cpp:7:15: error: expected unqualified-id before ']' token
int s[N],str[N];
^
0_0_20912264_22502.cpp: In function 'void kp()':
0_0_20912264_22502.cpp:13:18: error: 'p' was not declared in this scope
if(mx>i) p[i]=_min(p[id*2-i],p[id]+id-i);
^
0_0_20912264_22502.cpp:14:14: error: 'p' was not declared in this scope
else p[i]=1;
^
0_0_20912264_22502.cpp:15:14: error: 'str' was not declared in this scope
for(;str[i+p[i]]==str[i-p[i]];p[i]++)
^
0_0_20912264_22502.cpp:15:20: error: 'p' was not declared in this scope
for(;str[i+p[i]]==str[i-p[i]];p[i]++)
^
0_0_20912264_22502.cpp:17:13: error: 'p' was not declared in this scope
for(p[i]+i>mx)
^
0_0_20912264_22502.cpp:22:5: error: expected primary-expression before '}' token
}
^
0_0_20912264_22502.cpp:22:5: error: expected ';' before '}' token
0_0_20912264_22502.cpp:22:5: error: expected primary-expression before '}' token
0_0_20912264_22502.cpp:22:5: error: expected ')' before '}' token
0_0_20912264_22502.cpp:22:5: error: expected primary-expression before '}' token
0_0_20912264_22502.cpp: In function 'void init()':
0_0_20912264_22502.cpp:27:5: error: 'str' was not declared in this scope
str[0]=-1;
^
0_0_20912264_22502.cpp:31:20: error: 's' was not declared in this scope
str[i*2+2]=s[i];
^
0_0_20912264_22502.cpp:35:5: error: 's' was not declared in this scope
s[n]=0;
^
0_0_20912264_22502.cpp: In function 'int main()':
0_0_20912264_22502.cpp:44:13: error: 'i' was not declared in this scope
for(i=0;i<n;i++) scanf("%d",&s[i]);
^
0_0_20912264_22502.cpp:44:38: error: 's' was not declared in this scope
for(i=0;i<n;i++) scanf("%d",&s[i]);
^
0_0_20912264_22502.cpp:48:13: error: 'i' was not declared in this scope
for(i=1;i<n;i+=2)
^
0_0_20912264_22502.cpp:50:17: error: 'p' was not declared in this scope
if((p[i]-1>1)&&(p[i-1]&2))
^
0_0_20912264_22502.cpp:52:21: error: 'in' was not declared in this scope
for(in tj=p[i]-1;j>top;j-=2)
^
0_0_20912264_22502.cpp:52:34: error: 'j' was not declared in this scope
for(in tj=p[i]-1;j>top;j-=2)
^
0_0_20912264_22502.cpp:61:32: error: 'i' was not declared in this scope
print("Case #%d: %d\n",i,top/2*3);
^
0_0_20912264_22502.cpp:61:41: error: 'print' was not declared in this scope
print("Case #%d: %d\n",i,top/2*3);
^
|