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_26476524_25856\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_26476524_25856\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
         ^
0_0_26476524_25856\Main.java:2: 错误: 非法字符: '#'
#define mst(a,b) memset(a,b,sizeof(a))
^
0_0_26476524_25856\Main.java:3: 错误: 非法字符: '#'
#define mp(a,b) make_pair(a,b)
^
0_0_26476524_25856\Main.java:4: 错误: 非法字符: '#'
#define pii pair<int, int>
^
0_0_26476524_25856\Main.java:5: 错误: 非法字符: '#'
#define pid pair<int, double>
^
0_0_26476524_25856\Main.java:6: 错误: 非法字符: '#'
#define pb push_back
^
0_0_26476524_25856\Main.java:8: 错误: 需要class, interface或enum
using namespace std;
^
0_0_26476524_25856\Main.java:9: 错误: 需要class, interface或enum
const int maxn=1e5+10;
^
0_0_26476524_25856\Main.java:10: 错误: 需要class, interface或enum
const int mod=1e9+7;
^
0_0_26476524_25856\Main.java:11: 错误: 需要class, interface或enum
const double eps=1e-6;
^
0_0_26476524_25856\Main.java:12: 错误: 需要class, interface或enum
const int INF = 0x3f3f3f3f;
^
0_0_26476524_25856\Main.java:14: 错误: 需要class, interface或enum
ll num[100];
^
0_0_26476524_25856\Main.java:15: 错误: 需要class, interface或enum
bool sign[100];
^
0_0_26476524_25856\Main.java:16: 错误: 需要class, interface或enum
bool bit[100];
^
0_0_26476524_25856\Main.java:17: 错误: 需要class, interface或enum
void solve() {
^
0_0_26476524_25856\Main.java:19: 错误: 需要class, interface或enum
    int kase=1;
    ^
0_0_26476524_25856\Main.java:20: 错误: 需要class, interface或enum
    scanf("%d", &T);
    ^
0_0_26476524_25856\Main.java:21: 错误: 需要class, interface或enum
    while(T--) {
    ^
0_0_26476524_25856\Main.java:23: 错误: 需要class, interface或enum
        scanf("%d%d",&n,&k);
        ^
0_0_26476524_25856\Main.java:24: 错误: 需要class, interface或enum
        int cnt=1;
        ^
0_0_26476524_25856\Main.java:25: 错误: 需要class, interface或enum
        int now=n;
        ^
0_0_26476524_25856\Main.java:26: 错误: 需要class, interface或enum
        while(now){
        ^
0_0_26476524_25856\Main.java:28: 错误: 需要class, interface或enum
            now>>=1;
            ^
0_0_26476524_25856\Main.java:29: 错误: 需要class, interface或enum
        }
        ^
0_0_26476524_25856\Main.java:31: 错误: 需要class, interface或enum
        now=1;
        ^
0_0_26476524_25856\Main.java:32: 错误: 需要class, interface或enum
        for(int i=1;i<=cnt;i++){
        ^
0_0_26476524_25856\Main.java:32: 错误: 需要class, interface或enum
        for(int i=1;i<=cnt;i++){
                    ^
0_0_26476524_25856\Main.java:32: 错误: 需要class, interface或enum
        for(int i=1;i<=cnt;i++){
                           ^
0_0_26476524_25856\Main.java:34: 错误: 需要class, interface或enum
            now<<=1;
            ^
0_0_26476524_25856\Main.java:35: 错误: 需要class, interface或enum
        }
        ^
0_0_26476524_25856\Main.java:37: 错误: 需要class, interface或enum
        for(int i=cnt-1;i>=1;i--){
        ^
0_0_26476524_25856\Main.java:37: 错误: 需要class, interface或enum
        for(int i=cnt-1;i>=1;i--){
                        ^
0_0_26476524_25856\Main.java:37: 错误: 需要class, interface或enum
        for(int i=cnt-1;i>=1;i--){
                             ^
0_0_26476524_25856\Main.java:39: 错误: 需要class, interface或enum
            ll pos=1<<(i-1);
            ^
0_0_26476524_25856\Main.java:40: 错误: 需要class, interface或enum
            for(int j=i+1;j<=cnt-1;j++){
            ^
0_0_26476524_25856\Main.java:40: 错误: 需要class, interface或enum
            for(int j=i+1;j<=cnt-1;j++){
                          ^
0_0_26476524_25856\Main.java:40: 错误: 需要class, interface或enum
            for(int j=i+1;j<=cnt-1;j++){
                                   ^
0_0_26476524_25856\Main.java:43: 错误: 需要class, interface或enum
            }
            ^
0_0_26476524_25856\Main.java:47: 错误: 需要class, interface或enum
                ll cur=pos;
                ^
0_0_26476524_25856\Main.java:48: 错误: 需要class, interface或enum
                for(int k=cnt;cur;k--){
                ^
0_0_26476524_25856\Main.java:48: 错误: 需要class, interface或enum
                for(int k=cnt;cur;k--){
                              ^
0_0_26476524_25856\Main.java:48: 错误: 需要class, interface或enum
                for(int k=cnt;cur;k--){
                                  ^
0_0_26476524_25856\Main.java:50: 错误: 需要class, interface或enum
                    cur>>=1;
                    ^
0_0_26476524_25856\Main.java:51: 错误: 需要class, interface或enum
                }
                ^
0_0_26476524_25856\Main.java:54: 错误: 需要class, interface或enum
            }else if(bit[i]==x){
            ^
0_0_26476524_25856\Main.java:56: 错误: 需要class, interface或enum
                int cur=pos;
                ^
0_0_26476524_25856\Main.java:57: 错误: 需要class, interface或enum
                for(int k=cnt;cur;k--){
                ^
0_0_26476524_25856\Main.java:57: 错误: 需要class, interface或enum
                for(int k=cnt;cur;k--){
                              ^
0_0_26476524_25856\Main.java:57: 错误: 需要class, interface或enum
                for(int k=cnt;cur;k--){
                                  ^
0_0_26476524_25856\Main.java:59: 错误: 需要class, interface或enum
                    cur>>=1;
                    ^
0_0_26476524_25856\Main.java:60: 错误: 需要class, interface或enum
                }
                ^
0_0_26476524_25856\Main.java:63: 错误: 需要class, interface或enum
            }else{
            ^
0_0_26476524_25856\Main.java:65: 错误: 需要class, interface或enum
            }
            ^
0_0_26476524_25856\Main.java:67: 错误: 需要class, interface或enum
        for(int i=cnt+1;i<=k;i++){
                        ^
0_0_26476524_25856\Main.java:67: 错误: 需要class, interface或enum
        for(int i=cnt+1;i<=k;i++){
                             ^
0_0_26476524_25856\Main.java:69: 错误: 需要class, interface或enum
            sign[i-1]=1;
            ^
0_0_26476524_25856\Main.java:70: 错误: 需要class, interface或enum
        }
        ^
0_0_26476524_25856\Main.java:72: 错误: 需要class, interface或enum
        ll res=0;
        ^
0_0_26476524_25856\Main.java:73: 错误: 需要class, interface或enum
        for(int i=1;i<=k;i++){
        ^
0_0_26476524_25856\Main.java:73: 错误: 需要class, interface或enum
        for(int i=1;i<=k;i++){
                    ^
0_0_26476524_25856\Main.java:73: 错误: 需要class, interface或enum
        for(int i=1;i<=k;i++){
                         ^
0_0_26476524_25856\Main.java:75: 错误: 需要class, interface或enum
            if(sign[i])res-=num[i];
            ^
0_0_26476524_25856\Main.java:76: 错误: 需要class, interface或enum
            else res+=num[i];
            ^
0_0_26476524_25856\Main.java:77: 错误: 需要class, interface或enum
        }
        ^
0_0_26476524_25856\Main.java:79: 错误: 需要class, interface或enum
    }
    ^
0_0_26476524_25856\Main.java:82: 错误: 非法字符: '#'
#ifdef LOCAL
^
0_0_26476524_25856\Main.java:84: 错误: 非法字符: '#'
#endif // LOCAL
^
0_0_26476524_25856\Main.java:85: 错误: 需要class, interface或enum
    solve();
    ^
0_0_26476524_25856\Main.java:86: 错误: 需要class, interface或enum
}
^
70 个错误


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 16:29:31, Gzip enabled