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_22177798_19996\Main.java:2: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_22177798_19996\Main.java:2: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_22177798_19996\Main.java:4: 错误: 非法字符: '#'
#pragma comment(linker, "/STACK:102400000,102400000")
^
0_0_22177798_19996\Main.java:4: 错误: 需要class, interface或enum
#pragma comment(linker, "/STACK:102400000,102400000")
        ^
0_0_22177798_19996\Main.java:5: 错误: 非法字符: '#'
#define rep(i,a,b) for (int i=a; i<=b; ++i)
^
0_0_22177798_19996\Main.java:5: 错误: 需要class, interface或enum
#define rep(i,a,b) for (int i=a; i<=b; ++i)
                                 ^
0_0_22177798_19996\Main.java:5: 错误: 需要class, interface或enum
#define rep(i,a,b) for (int i=a; i<=b; ++i)
                                       ^
0_0_22177798_19996\Main.java:6: 错误: 非法字符: '#'
#define per(i,b,a) for (int i=b; i>=a; --i)
^
0_0_22177798_19996\Main.java:6: 错误: 需要class, interface或enum
#define per(i,b,a) for (int i=b; i>=a; --i)
                                 ^
0_0_22177798_19996\Main.java:6: 错误: 需要class, interface或enum
#define per(i,b,a) for (int i=b; i>=a; --i)
                                       ^
0_0_22177798_19996\Main.java:7: 错误: 非法字符: '#'
#define mes(a,b)  memset(a,b,sizeof(a))
^
0_0_22177798_19996\Main.java:8: 错误: 非法字符: '#'
#define INF 0x3f3f3f3f
^
0_0_22177798_19996\Main.java:9: 错误: 非法字符: '#'
#define MP make_pair
^
0_0_22177798_19996\Main.java:10: 错误: 非法字符: '#'
#define PB push_back
^
0_0_22177798_19996\Main.java:11: 错误: 非法字符: '#'
#define fi  first
^
0_0_22177798_19996\Main.java:12: 错误: 非法字符: '#'
#define se  second
^
0_0_22177798_19996\Main.java:14: 错误: 需要class, interface或enum
const int N = 200005;
^
0_0_22177798_19996\Main.java:16: 错误: 需要class, interface或enum
struct P { int val, next, pre; } p[N];
^
0_0_22177798_19996\Main.java:16: 错误: 需要class, interface或enum
struct P { int val, next, pre; } p[N];
                               ^
0_0_22177798_19996\Main.java:17: 错误: 需要class, interface或enum
int n;
^
0_0_22177798_19996\Main.java:18: 错误: 需要class, interface或enum
bool vis[N];
^
0_0_22177798_19996\Main.java:19: 错误: 需要class, interface或enum
queue<int > q;    int Q[N], tail;
^
0_0_22177798_19996\Main.java:19: 错误: 需要class, interface或enum
queue<int > q;    int Q[N], tail;
                  ^
0_0_22177798_19996\Main.java:20: 错误: 需要class, interface或enum
int main()
^
0_0_22177798_19996\Main.java:22: 错误: 需要class, interface或enum
    int T;  scanf("%d", &T);
            ^
0_0_22177798_19996\Main.java:23: 错误: 需要class, interface或enum
    while(T--)
    ^
0_0_22177798_19996\Main.java:26: 错误: 需要class, interface或enum
        mes(vis, false);
        ^
0_0_22177798_19996\Main.java:27: 错误: 需要class, interface或enum
        vis[0]=vis[n+1]=true;
        ^
0_0_22177798_19996\Main.java:28: 错误: 需要class, interface或enum
        p[0].val=0, p[n+1].val=INF;
        ^
0_0_22177798_19996\Main.java:29: 错误: 需要class, interface或enum
        while(!q.empty()) q.pop();
        ^
0_0_22177798_19996\Main.java:30: 错误: 需要class, interface或enum
        rep(i,1,n)
        ^
0_0_22177798_19996\Main.java:33: 错误: 需要class, interface或enum
            p[i].next=i+1, p[i].pre=i-1;
            ^
0_0_22177798_19996\Main.java:34: 错误: 需要class, interface或enum
        }
        ^
0_0_22177798_19996\Main.java:39: 错误: 需要class, interface或enum
        int ans=n;
        ^
0_0_22177798_19996\Main.java:40: 错误: 需要class, interface或enum
        while(!q.empty())
        ^
0_0_22177798_19996\Main.java:43: 错误: 需要class, interface或enum
            q.pop();
            ^
0_0_22177798_19996\Main.java:44: 错误: 需要class, interface或enum
            if(vis[u] || p[u].val<=p[p[u].next].val) continue;
            ^
0_0_22177798_19996\Main.java:45: 错误: 需要class, interface或enum
            vis[u]=true;     --ans;
            ^
0_0_22177798_19996\Main.java:45: 错误: 需要class, interface或enum
            vis[u]=true;     --ans;
                             ^
0_0_22177798_19996\Main.java:46: 错误: 需要class, interface或enum
            for(i=p[u].next; i<=n; i=p[i].next)
            ^
0_0_22177798_19996\Main.java:46: 错误: 需要class, interface或enum
            for(i=p[u].next; i<=n; i=p[i].next)
                             ^
0_0_22177798_19996\Main.java:46: 错误: 需要class, interface或enum
            for(i=p[u].next; i<=n; i=p[i].next)
                                   ^
0_0_22177798_19996\Main.java:49: 错误: 需要class, interface或enum
                vis[i]=true;    --ans;
                ^
0_0_22177798_19996\Main.java:49: 错误: 需要class, interface或enum
                vis[i]=true;    --ans;
                                ^
0_0_22177798_19996\Main.java:50: 错误: 需要class, interface或enum
            }
            ^
0_0_22177798_19996\Main.java:51: 错误: 需要class, interface或enum
            p[p[u].pre].next=i;   p[i].pre=p[u].pre;
                                  ^
0_0_22177798_19996\Main.java:52: 错误: 需要class, interface或enum
            q.push(p[u].pre);  q.push(i);
            ^
0_0_22177798_19996\Main.java:52: 错误: 需要class, interface或enum
            q.push(p[u].pre);  q.push(i);
                               ^
0_0_22177798_19996\Main.java:53: 错误: 需要class, interface或enum
        }
        ^
0_0_22177798_19996\Main.java:55: 错误: 需要class, interface或enum
        int cnt=0;
        ^
0_0_22177798_19996\Main.java:56: 错误: 需要class, interface或enum
        rep(i,1,n) if(!vis[i])
        ^
0_0_22177798_19996\Main.java:58: 错误: 需要class, interface或enum
            printf("%d", p[i].val);    ++cnt;
                                       ^
0_0_22177798_19996\Main.java:59: 错误: 需要class, interface或enum
            if(cnt!=ans) printf(" ");
            ^
0_0_22177798_19996\Main.java:60: 错误: 需要class, interface或enum
        }
        ^
0_0_22177798_19996\Main.java:62: 错误: 需要class, interface或enum
    }
    ^
0_0_22177798_19996\Main.java:65: 错误: 需要class, interface或enum
}
^
56 个错误


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-17 01:15:29, Gzip enabled