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_17363401_6103.cpp:6:14: error: conflicting declaration 'char s [1100][110]'
 char s[N][110];
              ^
0_0_17363401_6103.cpp:4:25: note: previous declaration as 'int s'
 int t,m,w,p[N],n[N],cnt,s;
                         ^
0_0_17363401_6103.cpp: In function 'void build(int)':
0_0_17363401_6103.cpp:19:17: error: invalid types 'int[int]' for array subscript
   int k=map[s[id][i]-'a'];
                 ^
0_0_17363401_6103.cpp: In function 'int main()':
0_0_17363401_6103.cpp:39:8: error: no match for 'operator=' (operand types are 'node' and 'node*')
   *root=mem+cnt++;
        ^
0_0_17363401_6103.cpp:39:8: note: candidates are:
0_0_17363401_6103.cpp:7:8: note: node& node::operator=(const node&)
 struct node{
        ^
0_0_17363401_6103.cpp:7:8: note:   no known conversion for argument 1 from 'node*' to 'const node&'
0_0_17363401_6103.cpp:7:8: note: node& node::operator=(node&&)
0_0_17363401_6103.cpp:7:8: note:   no known conversion for argument 1 from 'node*' to 'node&&'
0_0_17363401_6103.cpp:42:18: error: invalid types 'int[int]' for array subscript
    scanf("%s",s[i]);
                  ^
0_0_17363401_6103.cpp:44:19: error: invalid types 'int[int]' for array subscript
    n[i]=strlen(s[i]);
                   ^


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-12-03 04:59:31, Gzip enabled