0_0_28111622_10392.cpp: In function 'int main()':
0_0_28111622_10392.cpp:5:23: error: expected ']' before ';' token
#define w 2000000 + 50;
^
0_0_28111622_10392.cpp:18:10: note: in expansion of macro 'w'
int a[w],b[w],c[w][w];
^
0_0_28111622_10392.cpp:18:11: error: expected primary-expression before ']' token
int a[w],b[w],c[w][w];
^
0_0_28111622_10392.cpp:18:16: error: expected primary-expression before ']' token
int a[w],b[w],c[w][w];
^
0_0_28111622_10392.cpp:18:21: error: expected primary-expression before ']' token
int a[w],b[w],c[w][w];
^
0_0_28111622_10392.cpp:18:24: error: expected primary-expression before ']' token
int a[w],b[w],c[w][w];
^
0_0_28111622_10392.cpp:20:38: error: 'a' was not declared in this scope
for(int i=1;i<=n;i++) scanf("%d",&a[i]);
^
0_0_28111622_10392.cpp:21:38: error: 'b' was not declared in this scope
for(int i=1;i<=n;i++) scanf("%d",&b[i]);
^
0_0_28111622_10392.cpp:25:5: error: 'c' was not declared in this scope
c[i][0]=0;
^
0_0_28111622_10392.cpp:33:9: error: 'a' was not declared in this scope
if(a[i]==b[j]) c[i][j]=c[i-1][j-1]+1;
^
0_0_28111622_10392.cpp:33:15: error: 'b' was not declared in this scope
if(a[i]==b[j]) c[i][j]=c[i-1][j-1]+1;
^
0_0_28111622_10392.cpp:33:22: error: 'c' was not declared in this scope
if(a[i]==b[j]) c[i][j]=c[i-1][j-1]+1;
^
0_0_28111622_10392.cpp:36:11: error: 'c' was not declared in this scope
c[i][j]=max(c[i][j-1],c[i-1][j]);
^
0_0_28111622_10392.cpp:40:17: error: 'c' was not declared in this scope
printf("%d\n",c[n][n]+1);
^
|