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_19301601_7413\Main.java:1: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_19301601_7413\Main.java:1: 错误: 需要class, interface或enum
#include <cstdio>
         ^
0_0_19301601_7413\Main.java:5: 错误: 需要class, interface或enum
const int N = 100;
^
0_0_19301601_7413\Main.java:7: 错误: 需要class, interface或enum
static long long n;
       ^
0_0_19301601_7413\Main.java:8: 错误: 需要class, interface或enum
static int q;
       ^
0_0_19301601_7413\Main.java:10: 错误: 需要class, interface或enum
long long cnt[N];
^
0_0_19301601_7413\Main.java:12: 错误: 需要class, interface或enum
long long solve(const long long x, const int d = 0)
^
0_0_19301601_7413\Main.java:15: 错误: 需要class, interface或enum
    return (x - x / 2) * (1 << d) + solve(x / 2, d + 1);
    ^
0_0_19301601_7413\Main.java:16: 错误: 需要class, interface或enum
}
^
0_0_19301601_7413\Main.java:21: 错误: 需要class, interface或enum
}
^
0_0_19301601_7413\Main.java:28: 错误: 需要class, interface或enum
    long long l, r, x;
    ^
0_0_19301601_7413\Main.java:29: 错误: 需要class, interface或enum
    while( scanf("%lld%d", &n, &q) != EOF )
    ^
0_0_19301601_7413\Main.java:31: 错误: 需要class, interface或enum
        for(int i = 0; i < q; i++)
                       ^
0_0_19301601_7413\Main.java:31: 错误: 需要class, interface或enum
        for(int i = 0; i < q; i++)
                              ^
0_0_19301601_7413\Main.java:35: 错误: 需要class, interface或enum
            if(t == 1)
            ^
0_0_19301601_7413\Main.java:38: 错误: 需要class, interface或enum
                printf("%lld\n", solve(r) - solve(l - 1));
                ^
0_0_19301601_7413\Main.java:39: 错误: 需要class, interface或enum
            }
            ^
0_0_19301601_7413\Main.java:43: 错误: 需要class, interface或enum
                printf("%lld\n", solve(x) - solve(x - 1));
                ^
0_0_19301601_7413\Main.java:44: 错误: 需要class, interface或enum
            }
            ^
0_0_19301601_7413\Main.java:49: 错误: 需要class, interface或enum
}
^
20 个错误


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-23 09:06:01, Gzip enabled