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_39564147_15117.cpp: In function 'void run()':
0_0_39564147_15117.cpp:14:52: error: expected ';' before '{' token
   14 |         }else if((y!=1 and y!=m) and (x==1 or x==n){
      |                                                    ^
      |                                                    ;
0_0_39564147_15117.cpp:16:10: error: expected primary-expression before 'else'
   16 |         }else if((x!=1 and x!=m) and (y==1 or y==n)){
      |          ^~~~
0_0_39564147_15117.cpp:16:10: error: expected ')' before 'else'
   16 |         }else if((x!=1 and x!=m) and (y==1 or y==n)){
      |          ^~~~
      |          )
0_0_39564147_15117.cpp:14:17: note: to match this '('
   14 |         }else if((y!=1 and y!=m) and (x==1 or x==n){
      |                 ^


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 08:10:43, Gzip enabled