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_36457781_29174.cpp:6:1: error: expected initializer before 'll'
 ll a[N],arr[N];
 ^
0_0_36457781_29174.cpp: In function 'void add(ll)':
0_0_36457781_29174.cpp:13:12: error: 'trans' was not declared in this scope
         if(trans[p][c] == 0) trans[p][c] = ++tot;
            ^
0_0_36457781_29174.cpp:14:13: error: 'trans' was not declared in this scope
         p = trans[p][c];
             ^
0_0_36457781_29174.cpp:16:5: error: 'arr' was not declared in this scope
     arr[p] = x;
     ^
0_0_36457781_29174.cpp: In function 'll dfs(ll)':
0_0_36457781_29174.cpp:24:12: error: 'trans' was not declared in this scope
         if(trans[p][c^1]) p = trans[p][c^1];
            ^
0_0_36457781_29174.cpp:27:12: error: 'arr' was not declared in this scope
     return arr[p];
            ^
0_0_36457781_29174.cpp: In function 'int main()':
0_0_36457781_29174.cpp:35:16: error: 'trans' was not declared in this scope
         memset(trans,0,sizeof(trans));
                ^
0_0_36457781_29174.cpp:36:16: error: 'arr' was not declared in this scope
         memset(arr,0,sizeof(arr));
                ^
0_0_36457781_29174.cpp:41:27: error: 'a' was not declared in this scope
             scanf("%lld",&a[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-11-17 09:39:29, Gzip enabled