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_20612252_3731.cpp:4:5: error: expected unqualified-id before '=' token
     = X[id] && ret <= Y[id] && (ret - X[id]) % Z[id] == 0)                            ++cnt;                    }                    printf("%d %d\n", ret, cnt);                }            id = cnt = ret = 0;            continue;        }         sscanf(buf, "%d%d%d", &X[id], &Y[id], &Z[id]);        for (i = X[id]; i <= Y[id]; i += Z[id])            ret ^= i;        ++id;    }    if (id)         if (ret == 0) puts("None.");        else {            while (id--) {                if (ret >= X[id] && ret <= Y[id] && (ret - X[id]) % Z[id] == 0)                    ++cnt;            }            printf("%d %d\n", ret, cnt);        }    return 0;}
     ^
0_0_20612252_3731.cpp:4:113: error: expected declaration before '}' token
     = X[id] && ret <= Y[id] && (ret - X[id]) % Z[id] == 0)                            ++cnt;                    }                    printf("%d %d\n", ret, cnt);                }            id = cnt = ret = 0;            continue;        }         sscanf(buf, "%d%d%d", &X[id], &Y[id], &Z[id]);        for (i = X[id]; i <= Y[id]; i += Z[id])            ret ^= i;        ++id;    }    if (id)         if (ret == 0) puts("None.");        else {            while (id--) {                if (ret >= X[id] && ret <= Y[id] && (ret - X[id]) % Z[id] == 0)                    ++cnt;            }            printf("%d %d\n", ret, cnt);        }    return 0;}
                                                                                                                 ^


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-29 12:06:18, Gzip enabled