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_18301396_30049.cpp: In function 'int judge(LL, LL)':
0_0_18301396_30049.cpp:20:13: error: expected '}' before 'else'
             else if (i!=l&&tt%2==1) return false;
             ^
0_0_18301396_30049.cpp:20:28: error: 'tt' was not declared in this scope
             else if (i!=l&&tt%2==1) return false;
                            ^
0_0_18301396_30049.cpp:22:9: error: 'else' without a previous 'if'
         else
         ^
0_0_18301396_30049.cpp:25:20: error: 'i' was not declared in this scope
             while (i-1>=l&&!(num[i-1]&1))i--,tt++;
                    ^
0_0_18301396_30049.cpp:26:13: error: 'else' without a previous 'if'
             else if (i!=l&&tt%2==0) return false;
             ^
0_0_18301396_30049.cpp:26:22: error: 'i' was not declared in this scope
             else if (i!=l&&tt%2==0) return false;
                      ^
0_0_18301396_30049.cpp: At global scope:
0_0_18301396_30049.cpp:29:5: error: expected unqualified-id before 'return'
     return true;
     ^
0_0_18301396_30049.cpp:30: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-06-29 13:53:10, Gzip enabled