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_29777872_3613.cpp: In function 'int main()':
0_0_29777872_3613.cpp:29:20: error: 'str' was not declared in this scope
                 if(str[i]=='H')h1++;
                    ^
0_0_29777872_3613.cpp:29:32: error: 'h1' was not declared in this scope
                 if(str[i]=='H')h1++;
                                ^
0_0_29777872_3613.cpp:30:22: error: 't1' was not declared in this scope
                 else t1++;
                      ^
0_0_29777872_3613.cpp:31:20: error: 'str' was not declared in this scope
                 if(str[front++]=='H')h1--;
                    ^
0_0_29777872_3613.cpp:31:24: error: 'front' was not declared in this scope
                 if(str[front++]=='H')h1--;
                        ^
0_0_29777872_3613.cpp:31:38: error: 'h1' was not declared in this scope
                 if(str[front++]=='H')h1--;
                                      ^
0_0_29777872_3613.cpp:32:22: error: 't1' was not declared in this scope
                 else t1--;
                      ^
0_0_29777872_3613.cpp:33:20: error: 'h1' was not declared in this scope
                 if(h1==h/2&&t1==t/2){
                    ^
0_0_29777872_3613.cpp:33:24: error: 'h' was not declared in this scope
                 if(h1==h/2&&t1==t/2){
                        ^
0_0_29777872_3613.cpp:33:29: error: 't1' was not declared in this scope
                 if(h1==h/2&&t1==t/2){
                             ^
0_0_29777872_3613.cpp:33:33: error: 't' was not declared in this scope
                 if(h1==h/2&&t1==t/2){
                                 ^
0_0_29777872_3613.cpp:34:36: error: 'front' was not declared in this scope
                     cout<<2<<endl<<front<<" "<<i+1<<endl;
                                    ^


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 08:40:35, Gzip enabled