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_21139939_24092.cpp: In function 'void add(char)':
0_0_21139939_24092.cpp:8:42: error: 'rl' was not declared in this scope
     int np = ++cnt, p = last; last = np; rl[np] = ma[np] = ma[p] + 1;
                                          ^
0_0_21139939_24092.cpp: In function 'int main()':
0_0_21139939_24092.cpp:35:36: error: too many arguments to function 'void add(char)'
                 add(str[i] - 'a', i);
                                    ^
0_0_21139939_24092.cpp:7:6: note: declared here
 void add(char c) {
      ^
0_0_21139939_24092.cpp:37:41: error: 'rl' was not declared in this scope
             if (l) printf("%d %d\n", l, rl[p] - l);
                                         ^
0_0_21139939_24092.cpp:38:37: error: too many arguments to function 'void add(char)'
             else add(str[i] - 'a', i), printf("-1 %d\n", str[i++]);
                                     ^
0_0_21139939_24092.cpp:7:6: note: declared here
 void add(char c) {
      ^


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-02 11:58:52, Gzip enabled