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_32055051_8079.cpp:6:20: error: expected ']' before ';' token
 #define MAXN 1e6+10;
                    ^
0_0_32055051_8079.cpp:8:8: note: in expansion of macro 'MAXN'
 char p[MAXN];
        ^
0_0_32055051_8079.cpp:8:12: error: expected unqualified-id before ']' token
 char p[MAXN];
            ^
0_0_32055051_8079.cpp:6:20: error: expected ']' before ';' token
 #define MAXN 1e6+10;
                    ^
0_0_32055051_8079.cpp:9:9: note: in expansion of macro 'MAXN'
 int nxt[MAXN];
         ^
0_0_32055051_8079.cpp:9:13: error: expected unqualified-id before ']' token
 int nxt[MAXN];
             ^
0_0_32055051_8079.cpp: In function 'void getNext(char*)':
0_0_32055051_8079.cpp:13:5: error: 'nxt' was not declared in this scope
     nxt[0] = -1;
     ^
0_0_32055051_8079.cpp: In function 'int main()':
0_0_32055051_8079.cpp:32:20: error: 'p' was not declared in this scope
         scanf("%s",p);
                    ^
0_0_32055051_8079.cpp:38:25: error: 'nxt' was not declared in this scope
             int j = i - nxt[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-25 04:03:35, Gzip enabled