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_16980408_17002.cpp: In function 'int main(int, char**)':
0_0_16980408_17002.cpp:15:9: error: expected ';' before 'int'
         int len, end = 0, start = 0, r = 0;
         ^
0_0_16980408_17002.cpp:16:27: error: 'len' was not declared in this scope
         scanf("%s%d", p, &len);
                           ^
0_0_16980408_17002.cpp:19:21: error: the value of 'l' is not usable in a constant expression
         while(end < l) {
                     ^
0_0_16980408_17002.cpp:17:13: note: 'int l' is not const
         int l = strlen(p);
             ^
0_0_16980408_17002.cpp:19:15: error: parse error in template argument list
         while(end < l) {
               ^
0_0_16980408_17002.cpp:19:15: error: cannot resolve overloaded function 'end' based on conversion to type 'bool'
0_0_16980408_17002.cpp:20:30: error: 'r' was not declared in this scope
             while(end < l && r < len) {
                              ^
0_0_16980408_17002.cpp:20:19: error: parse error in template argument list
             while(end < l && r < len) {
                   ^
0_0_16980408_17002.cpp:20:19: error: cannot resolve overloaded function 'end' based on conversion to type 'bool'
0_0_16980408_17002.cpp:21:29: error: invalid types 'char [1000100][<unresolved overloaded function type>]' for array subscript
                 if(mp[ p[end] - 'a'] == 0)
                             ^
0_0_16980408_17002.cpp:23:26: error: no post-increment operator for type
                 mp[ p[end++]-'a' ] ++;
                          ^
0_0_16980408_17002.cpp:25:16: error: 'r' was not declared in this scope
             if(r >= len) {
                ^
0_0_16980408_17002.cpp:26:27: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator-'
                 re += l - end + 1;
                           ^
0_0_16980408_17002.cpp:28:23: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator>='
             if(end >= l) {
                       ^
0_0_16980408_17002.cpp:32:18: error: 'start' was not declared in this scope
             mp[p[start]-'a' ] --;
                  ^
0_0_16980408_17002.cpp:34:19: error: 'r' was not declared in this scope
                 --r;
                   ^


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-16 18:18:29, Gzip enabled