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_38262565_11578\Main.java:1: 错误: 非法字符: '#'
#include<cstdio>  
^
0_0_38262565_11578\Main.java:1: 错误: 需要class, interface或enum
#include<cstdio>  
        ^
0_0_38262565_11578\Main.java:2: 错误: 非法字符: '#'
#include<cstring>  
^
0_0_38262565_11578\Main.java:5: 错误: 非法字符: '#'
#define mod 1000000007  
^
0_0_38262565_11578\Main.java:5: 错误: 需要class, interface或enum
#define mod 1000000007  
        ^
0_0_38262565_11578\Main.java:7: 错误: 需要class, interface或enum
const int MAXA = 1025;  
^
0_0_38262565_11578\Main.java:8: 错误: 需要class, interface或enum
int dp1[MAXN][MAXA], dp2[MAXN][MAXA], dp3[MAXN][MAXA];  
^
0_0_38262565_11578\Main.java:9: 错误: 需要class, interface或enum
int a[MAXN];  
^
0_0_38262565_11578\Main.java:11: 错误: 需要class, interface或enum
int main()  
^
0_0_38262565_11578\Main.java:14: 错误: 需要class, interface或enum
    scanf("%d",&T);  
    ^
0_0_38262565_11578\Main.java:15: 错误: 需要class, interface或enum
    while(T--) {  
    ^
0_0_38262565_11578\Main.java:17: 错误: 需要class, interface或enum
        for(i = 0; i < n; i++)  
        ^
0_0_38262565_11578\Main.java:17: 错误: 需要class, interface或enum
        for(i = 0; i < n; i++)  
                   ^
0_0_38262565_11578\Main.java:17: 错误: 需要class, interface或enum
        for(i = 0; i < n; i++)  
                          ^
0_0_38262565_11578\Main.java:19: 错误: 需要class, interface或enum
        memset(dp1, 0, sizeof(dp1));  
        ^
0_0_38262565_11578\Main.java:20: 错误: 需要class, interface或enum
        memset(dp2, 0, sizeof(dp2));  
        ^
0_0_38262565_11578\Main.java:21: 错误: 需要class, interface或enum
        memset(dp3, 0, sizeof(dp3));  
        ^
0_0_38262565_11578\Main.java:22: 错误: 需要class, interface或enum
        dp1[0][a[0]] = 1;  
        ^
0_0_38262565_11578\Main.java:23: 错误: 需要class, interface或enum
        for(i = 1; i < n - 1; i++) {  
        ^
0_0_38262565_11578\Main.java:23: 错误: 需要class, interface或enum
        for(i = 1; i < n - 1; i++) {  
                   ^
0_0_38262565_11578\Main.java:23: 错误: 需要class, interface或enum
        for(i = 1; i < n - 1; i++) {  
                              ^
0_0_38262565_11578\Main.java:25: 错误: 需要class, interface或enum
            for(j = 0; j < MAXA; j++) {  
            ^
0_0_38262565_11578\Main.java:25: 错误: 需要class, interface或enum
            for(j = 0; j < MAXA; j++) {  
                       ^
0_0_38262565_11578\Main.java:25: 错误: 需要class, interface或enum
            for(j = 0; j < MAXA; j++) {  
                                 ^
0_0_38262565_11578\Main.java:28: 错误: 需要class, interface或enum
                    dp1[i][j] %= mod;  
                    ^
0_0_38262565_11578\Main.java:30: 错误: 需要class, interface或enum
                    t = j ^ a[i];  //添加第i个元素进行异或  
                    ^
0_0_38262565_11578\Main.java:31: 错误: 需要class, interface或enum
                    dp1[i][t] += dp1[i-1][j];  
                    ^
0_0_38262565_11578\Main.java:32: 错误: 需要class, interface或enum
                    dp1[i][t] %= mod;  
                    ^
0_0_38262565_11578\Main.java:33: 错误: 需要class, interface或enum
                }  
                ^
0_0_38262565_11578\Main.java:37: 错误: 需要class, interface或enum
        dp3[n-1][a[n-1]] = 1;  
        ^
0_0_38262565_11578\Main.java:38: 错误: 需要class, interface或enum
        for(i = n-2; i > 0; i--) {  
        ^
0_0_38262565_11578\Main.java:38: 错误: 需要class, interface或enum
        for(i = n-2; i > 0; i--) {  
                     ^
0_0_38262565_11578\Main.java:38: 错误: 需要class, interface或enum
        for(i = n-2; i > 0; i--) {  
                            ^
0_0_38262565_11578\Main.java:40: 错误: 需要class, interface或enum
            dp3[i][a[i]]++;   //单独一个元素构成一个集合  
            ^
0_0_38262565_11578\Main.java:41: 错误: 需要class, interface或enum
            for(j = 0; j < MAXA; j++) {  
            ^
0_0_38262565_11578\Main.java:41: 错误: 需要class, interface或enum
            for(j = 0; j < MAXA; j++) {  
                       ^
0_0_38262565_11578\Main.java:41: 错误: 需要class, interface或enum
            for(j = 0; j < MAXA; j++) {  
                                 ^
0_0_38262565_11578\Main.java:44: 错误: 需要class, interface或enum
                    dp2[i][j] %= mod;  
                    ^
0_0_38262565_11578\Main.java:46: 错误: 需要class, interface或enum
                    t = j & a[i]; //添加第i个元素进行按位与  
                    ^
0_0_38262565_11578\Main.java:47: 错误: 需要class, interface或enum
                    dp2[i][t] += dp2[i+1][j];  
                    ^
0_0_38262565_11578\Main.java:48: 错误: 需要class, interface或enum
                    dp2[i][t] %= mod;  
                    ^
0_0_38262565_11578\Main.java:50: 错误: 需要class, interface或enum
                    dp3[i][t] += dp2[i+1][j]; //添加第i个元素进行按位与  
                    ^
0_0_38262565_11578\Main.java:51: 错误: 需要class, interface或enum
                    dp3[i][t] %= mod;  
                    ^
0_0_38262565_11578\Main.java:52: 错误: 需要class, interface或enum
                }  
                ^
0_0_38262565_11578\Main.java:56: 错误: 需要class, interface或enum
        for(i = 0; i < n - 1; i++) {  
        ^
0_0_38262565_11578\Main.java:56: 错误: 需要class, interface或enum
        for(i = 0; i < n - 1; i++) {  
                   ^
0_0_38262565_11578\Main.java:56: 错误: 需要class, interface或enum
        for(i = 0; i < n - 1; i++) {  
                              ^
0_0_38262565_11578\Main.java:57: 错误: 需要class, interface或enum
            for(j = 0; j < MAXA; j++) {  
                       ^
0_0_38262565_11578\Main.java:57: 错误: 需要class, interface或enum
            for(j = 0; j < MAXA; j++) {  
                                 ^
0_0_38262565_11578\Main.java:60: 错误: 需要class, interface或enum
                    ans %= mod;  
                    ^
0_0_38262565_11578\Main.java:61: 错误: 需要class, interface或enum
                }  
                ^
0_0_38262565_11578\Main.java:64: 错误: 未结束的字符串文字
        printf("%d
               ^
0_0_38262565_11578\Main.java:65: 错误: 未结束的字符串文字
", ans);  
^
0_0_38262565_11578\Main.java:68: 错误: 需要class, interface或enum
}
^
54 个错误


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 19:24:44, Gzip enabled