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;}
^
|