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_22345912_11404.cpp: In function 'int main()':
0_0_22345912_11404.cpp:99:5: error: expected '}' before 'else'
     else {    // 奇数没有前导零部分
     ^
0_0_22345912_11404.cpp:100:13: error: 'Left' was not declared in this scope
      if(str[Left] < str[Right]) {//  左边小的部分
             ^
0_0_22345912_11404.cpp:100:25: error: 'Right' was not declared in this scope
      if(str[Left] < str[Right]) {//  左边小的部分
                         ^
0_0_22345912_11404.cpp:101:7: error: 'temp' was not declared in this scope
       temp.clear();
       ^
0_0_22345912_11404.cpp:109:7: error: 'temp' was not declared in this scope
       temp.clear();
       ^
0_0_22345912_11404.cpp:122:20: error: 'temp' was not declared in this scope
     }ans[cnt ++] = temp;
                    ^
0_0_22345912_11404.cpp:125:4: error: 'else' without a previous 'if'
    else {     //长度为偶数部分~~~
    ^
0_0_22345912_11404.cpp:128:12: error: 'len_str' was not declared in this scope
     Left = len_str / 2 - 1;
            ^
0_0_22345912_11404.cpp:196:11: error: 'cnt' was not declared in this scope
   cout << cnt << endl;
           ^
0_0_22345912_11404.cpp: At global scope:
0_0_22345912_11404.cpp:201:1: error: expected declaration before '}' token
 }
 ^


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-09-20 16:49:26, Gzip enabled