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_23820536_14061.cpp: In function 'int deal(char*, char*)':
0_0_23820536_14061.cpp:5:15: error: declaration of 'map' as multidimensional array must have bounds for all dimensions except the first
     int map[][];
               ^
0_0_23820536_14061.cpp:9:33: error: 'map' was not declared in this scope
             if(i==0&&a[i]==b[j])map[i][j]=1;
                                 ^
0_0_23820536_14061.cpp:10:22: error: expected primary-expression before ')' token
             if(j==0&&)
                      ^
0_0_23820536_14061.cpp:11:9: error: expected primary-expression before '}' token
         }
         ^
0_0_23820536_14061.cpp: In function 'int main()':
0_0_23820536_14061.cpp:16:25: error: 'a' was not declared in this scope
     while(scanf("%s %s",a,b))
                         ^
0_0_23820536_14061.cpp:16:27: error: 'b' was not declared in this scope
     while(scanf("%s %s",a,b))
                           ^


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-11-15 21:45:14, Gzip enabled