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_6212843_8207\Main.java:1: illegal character: \35
#include <iostream>
^
0_0_6212843_8207\Main.java:2: illegal character: \35
#include <cstring>
^
0_0_6212843_8207\Main.java:3: illegal character: \35
#include <cstdio>
^
0_0_6212843_8207\Main.java:4: illegal character: \35
#include <vector>
^
0_0_6212843_8207\Main.java:5: illegal character: \35
#include <map>
^
0_0_6212843_8207\Main.java:6: illegal character: \35
#include <string>
^
0_0_6212843_8207\Main.java:7: illegal character: \35
#include <vector>
^
0_0_6212843_8207\Main.java:8: illegal character: \35
#include <cmath>
^
0_0_6212843_8207\Main.java:10: class, interface, or enum expected
const int Maxn=100010;
^
0_0_6212843_8207\Main.java:11: class, interface, or enum expected
int c[Maxn];
^
0_0_6212843_8207\Main.java:12: class, interface, or enum expected
int l[Maxn],r[Maxn];
^
0_0_6212843_8207\Main.java:13: class, interface, or enum expected
bool a[Maxn],one[Maxn];
^
0_0_6212843_8207\Main.java:14: class, interface, or enum expected
int n,m,k,ones;
^
0_0_6212843_8207\Main.java:15: class, interface, or enum expected
long long ans;
^
0_0_6212843_8207\Main.java:16: class, interface, or enum expected
void insert(int x,int v)
^
0_0_6212843_8207\Main.java:18: class, interface, or enum expected
    for(int i=x;i<=n;i+=(-i&i))
                ^
0_0_6212843_8207\Main.java:18: class, interface, or enum expected
    for(int i=x;i<=n;i+=(-i&i))
                     ^
0_0_6212843_8207\Main.java:20: class, interface, or enum expected
}
^
0_0_6212843_8207\Main.java:24: class, interface, or enum expected
    for(int i=x;i>0;i-=(-i&i))
    ^
0_0_6212843_8207\Main.java:24: class, interface, or enum expected
    for(int i=x;i>0;i-=(-i&i))
                ^
0_0_6212843_8207\Main.java:24: class, interface, or enum expected
    for(int i=x;i>0;i-=(-i&i))
                    ^
0_0_6212843_8207\Main.java:26: class, interface, or enum expected
    return ret;
    ^
0_0_6212843_8207\Main.java:27: class, interface, or enum expected
}
^
0_0_6212843_8207\Main.java:32: class, interface, or enum expected
    scanf("%d",&cas);
    ^
0_0_6212843_8207\Main.java:33: class, interface, or enum expected
    while(cas--)
    ^
0_0_6212843_8207\Main.java:36: class, interface, or enum expected
        ones=ans=0;
        ^
0_0_6212843_8207\Main.java:37: class, interface, or enum expected
        for(int i=1;i<=n;++i)
        ^
0_0_6212843_8207\Main.java:37: class, interface, or enum expected
        for(int i=1;i<=n;++i)
                    ^
0_0_6212843_8207\Main.java:37: class, interface, or enum expected
        for(int i=1;i<=n;++i)
                         ^
0_0_6212843_8207\Main.java:39: class, interface, or enum expected
            int x;scanf("%d",&x);
                  ^
0_0_6212843_8207\Main.java:40: class, interface, or enum expected
            a[i]=(x>=k);
            ^
0_0_6212843_8207\Main.java:41: class, interface, or enum expected
            if(a[i]&&a[i-1])l[i]=l[i-1];
            ^
0_0_6212843_8207\Main.java:42: class, interface, or enum expected
            else l[i]=i-1;
            ^
0_0_6212843_8207\Main.java:43: class, interface, or enum expected
        }
        ^
0_0_6212843_8207\Main.java:45: class, interface, or enum expected
        for(int i=n-1;i>0;--i)
        ^
0_0_6212843_8207\Main.java:45: class, interface, or enum expected
        for(int i=n-1;i>0;--i)
                      ^
0_0_6212843_8207\Main.java:45: class, interface, or enum expected
        for(int i=n-1;i>0;--i)
                          ^
0_0_6212843_8207\Main.java:48: class, interface, or enum expected
            else r[i]=i;
            ^
0_0_6212843_8207\Main.java:49: class, interface, or enum expected
        }
        ^
0_0_6212843_8207\Main.java:51: class, interface, or enum expected
        for(int i=1;i<=n;++i)
        ^
0_0_6212843_8207\Main.java:51: class, interface, or enum expected
        for(int i=1;i<=n;++i)
                    ^
0_0_6212843_8207\Main.java:51: class, interface, or enum expected
        for(int i=1;i<=n;++i)
                         ^
0_0_6212843_8207\Main.java:53: class, interface, or enum expected
            int x;scanf("%d",&x);
                  ^
0_0_6212843_8207\Main.java:54: class, interface, or enum expected
            one[i]=x;
            ^
0_0_6212843_8207\Main.java:55: class, interface, or enum expected
            if(x)insert(i,x);
            ^
0_0_6212843_8207\Main.java:56: class, interface, or enum expected
            ones+=x;
            ^
0_0_6212843_8207\Main.java:57: class, interface, or enum expected
        }
        ^
0_0_6212843_8207\Main.java:58: class, interface, or enum expected
        for(int i=1;i<=n;++i)
                    ^
0_0_6212843_8207\Main.java:58: class, interface, or enum expected
        for(int i=1;i<=n;++i)
                         ^
0_0_6212843_8207\Main.java:61: class, interface, or enum expected
            else ans+=search(l[i]);
            ^
0_0_6212843_8207\Main.java:62: class, interface, or enum expected
        }
        ^
0_0_6212843_8207\Main.java:65: class, interface, or enum expected
            int x;scanf("%d",&x);
                  ^
0_0_6212843_8207\Main.java:66: class, interface, or enum expected
            if(x)printf("%I64d\n",ans);
            ^
0_0_6212843_8207\Main.java:67: class, interface, or enum expected
            else
            ^
0_0_6212843_8207\Main.java:70: class, interface, or enum expected
                if(one[x])
                ^
0_0_6212843_8207\Main.java:73: class, interface, or enum expected
                    insert(x,-1);
                    ^
0_0_6212843_8207\Main.java:74: class, interface, or enum expected
                    one[x]=0;
                    ^
0_0_6212843_8207\Main.java:75: class, interface, or enum expected
                    ones--;
                    ^
0_0_6212843_8207\Main.java:76: class, interface, or enum expected
                    ans+=search(l[x])+ones-search(r[x]);
                    ^
0_0_6212843_8207\Main.java:77: class, interface, or enum expected
                }
                ^
0_0_6212843_8207\Main.java:81: class, interface, or enum expected
                    insert(x,1);
                    ^
0_0_6212843_8207\Main.java:82: class, interface, or enum expected
                    one[x]=1;
                    ^
0_0_6212843_8207\Main.java:83: class, interface, or enum expected
                    ones++;
                    ^
0_0_6212843_8207\Main.java:84: class, interface, or enum expected
                    ans+=(l[x]-search(l[x]))+n-x-(ones-search(r[x]));
                    ^
0_0_6212843_8207\Main.java:85: class, interface, or enum expected
                }
                ^
0_0_6212843_8207\Main.java:90: class, interface, or enum expected
}
^
66 errors


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:20:38, Gzip enabled