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_22205525_7309.cpp:35:5: error: expected initializer before 'int'
     int xlen=x&0xf,ylen=y&0xf;
     ^
0_0_22205525_7309.cpp:36:5: error: expected unqualified-id before 'if'
     if(xlen>ylen) {swap(x,y);swap(xlen,ylen);}
     ^
0_0_22205525_7309.cpp:37:5: error: 'x' does not name a type
     x>>=4;y>>=4;
     ^
0_0_22205525_7309.cpp:37:11: error: 'y' does not name a type
     x>>=4;y>>=4;
           ^
0_0_22205525_7309.cpp:38:12: error: 'ylen' was not declared in this scope
     int m=(ylen-xlen);
            ^
0_0_22205525_7309.cpp:38:17: error: 'xlen' was not declared in this scope
     int m=(ylen-xlen);
                 ^
0_0_22205525_7309.cpp:39:5: error: 'x' does not name a type
     x>>=m;
     ^
0_0_22205525_7309.cpp:40:5: error: 'mlen' does not name a type
     mlen=xlen;
     ^
0_0_22205525_7309.cpp:41:5: error: expected unqualified-id before 'return'
     return (x^y)<<4|ylen;
     ^
0_0_22205525_7309.cpp:42: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-26 18:10:55, Gzip enabled