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_32403048_3619.cpp: In function 'int dfs(int, int, int, int, int)':
0_0_32403048_3619.cpp:34:9: error: invalid type argument of unary '*' (have 'int')
         res=dfs(pos-1,a,b,c,d)+(x1^x2)*(1<<pos);
         ^
0_0_32403048_3619.cpp: At global scope:
0_0_32403048_3619.cpp:35:6: error: expected unqualified-id before 'else'
     }else if(x1==y1 && x2!=y2){
      ^
0_0_32403048_3619.cpp:39:6: error: expected unqualified-id before 'else'
     }else if(x1!=y1 && x2==y2){
      ^
0_0_32403048_3619.cpp:42:6: error: expected unqualified-id before 'else'
     }else if(x1!=y1 && x2!=y2){
      ^
0_0_32403048_3619.cpp:48:5: error: expected unqualified-id before 'for'
     for (int i = x1; i <= y1; ++i) {
     ^
0_0_32403048_3619.cpp:48:5: error: expected constructor, destructor, or type conversion before 'for'
0_0_32403048_3619.cpp:48:22: error: 'i' does not name a type
     for (int i = x1; i <= y1; ++i) {
                      ^
0_0_32403048_3619.cpp:48:31: error: expected unqualified-id before '++' token
     for (int i = x1; i <= y1; ++i) {
                               ^


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-11-26 09:07:10, Gzip enabled