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_36373919_20136\Main.java:1: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_36373919_20136\Main.java:1: 错误: 需要class, interface或enum
#include<cstdio>
        ^
0_0_36373919_20136\Main.java:2: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_36373919_20136\Main.java:5: 错误: 需要class, interface或enum
typedef pair<int, int> P;
^
0_0_36373919_20136\Main.java:6: 错误: 需要class, interface或enum
const int N = 100005;
^
0_0_36373919_20136\Main.java:7: 错误: 需要class, interface或enum
int Case, n, i, j, k, f[N];
^
0_0_36373919_20136\Main.java:8: 错误: 需要class, interface或enum
P a[N];
^
0_0_36373919_20136\Main.java:10: 错误: 需要class, interface或enum
inline int abs(int x) { return x > 0 ? x : -x; }
^
0_0_36373919_20136\Main.java:10: 错误: 需要class, interface或enum
inline int abs(int x) { return x > 0 ? x : -x; }
                                               ^
0_0_36373919_20136\Main.java:12: 错误: 需要class, interface或enum
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
                                                      ^
0_0_36373919_20136\Main.java:16: 错误: 需要class, interface或enum
    while (Case--) {
    ^
0_0_36373919_20136\Main.java:18: 错误: 需要class, interface或enum
        for (i = 1; i <= n; i++) {
        ^
0_0_36373919_20136\Main.java:18: 错误: 需要class, interface或enum
        for (i = 1; i <= n; i++) {
                    ^
0_0_36373919_20136\Main.java:18: 错误: 需要class, interface或enum
        for (i = 1; i <= n; i++) {
                            ^
0_0_36373919_20136\Main.java:20: 错误: 需要class, interface或enum
            scanf("%d%d%d%d", &x1, &y1, &x2, &y2);
            ^
0_0_36373919_20136\Main.java:21: 错误: 需要class, interface或enum
            int dx = x2 - x1, dy = y2 - y1;
            ^
0_0_36373919_20136\Main.java:22: 错误: 需要class, interface或enum
            if (dx == 0)dy = 1;
            ^
0_0_36373919_20136\Main.java:23: 错误: 需要class, interface或enum
            else if (dy == 0)dx = 1;
            ^
0_0_36373919_20136\Main.java:24: 错误: 需要class, interface或enum
            else {
            ^
0_0_36373919_20136\Main.java:26: 错误: 需要class, interface或enum
                int d = gcd(abs(dx), abs(dy));
                ^
0_0_36373919_20136\Main.java:27: 错误: 需要class, interface或enum
                dx /= d, dy /= d;
                ^
0_0_36373919_20136\Main.java:28: 错误: 需要class, interface或enum
            }
            ^
0_0_36373919_20136\Main.java:30: 错误: 需要class, interface或enum
        }
        ^
0_0_36373919_20136\Main.java:32: 错误: 需要class, interface或enum
        for (i = 1; i <= n; i++)f[i] = 0;
        ^
0_0_36373919_20136\Main.java:32: 错误: 需要class, interface或enum
        for (i = 1; i <= n; i++)f[i] = 0;
                    ^
0_0_36373919_20136\Main.java:32: 错误: 需要class, interface或enum
        for (i = 1; i <= n; i++)f[i] = 0;
                            ^
0_0_36373919_20136\Main.java:33: 错误: 需要class, interface或enum
        for (i = 1; i <= n; i = j) {
        ^
0_0_36373919_20136\Main.java:33: 错误: 需要class, interface或enum
        for (i = 1; i <= n; i = j) {
                    ^
0_0_36373919_20136\Main.java:33: 错误: 需要class, interface或enum
        for (i = 1; i <= n; i = j) {
                            ^
0_0_36373919_20136\Main.java:34: 错误: 需要class, interface或enum
            for (j = i; j <= n && a[i] == a[j]; j++);
                        ^
0_0_36373919_20136\Main.java:34: 错误: 需要class, interface或enum
            for (j = i; j <= n && a[i] == a[j]; j++);
                                                ^
0_0_36373919_20136\Main.java:35: 错误: 需要class, interface或enum
            for (k = 1; k <= j - i; k++)f[k]++;
            ^
0_0_36373919_20136\Main.java:35: 错误: 需要class, interface或enum
            for (k = 1; k <= j - i; k++)f[k]++;
                        ^
0_0_36373919_20136\Main.java:35: 错误: 需要class, interface或enum
            for (k = 1; k <= j - i; k++)f[k]++;
                                    ^
0_0_36373919_20136\Main.java:36: 错误: 需要class, interface或enum
        }
        ^
0_0_36373919_20136\Main.java:37: 错误: 需要class, interface或enum
        for (i = j = 1; i <= n; i++) {
                        ^
0_0_36373919_20136\Main.java:37: 错误: 需要class, interface或enum
        for (i = j = 1; i <= n; i++) {
                                ^
0_0_36373919_20136\Main.java:39: 错误: 需要class, interface或enum
            f[j]--;
            ^
0_0_36373919_20136\Main.java:40: 错误: 需要class, interface或enum
            printf("%d\n", i - j);
            ^
0_0_36373919_20136\Main.java:41: 错误: 需要class, interface或enum
        }
        ^
0_0_36373919_20136\Main.java:44: 错误: 需要class, interface或enum
}
^
41 个错误


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-06 03:16:33, Gzip enabled