F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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);
                 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-05 19:19:58, Gzip enabled