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_16739703_6042\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_16739703_6042\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_16739703_6042\Main.java:2: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_16739703_6042\Main.java:6: 错误: 需要class, interface或enum
int extend_gcd(int a, int b, int &x, int &y)
^
0_0_16739703_6042\Main.java:11: 错误: 需要class, interface或enum
        y=0;
        ^
0_0_16739703_6042\Main.java:12: 错误: 需要class, interface或enum
        return a;
        ^
0_0_16739703_6042\Main.java:13: 错误: 需要class, interface或enum
    }
    ^
0_0_16739703_6042\Main.java:17: 错误: 需要class, interface或enum
        int temp=x;
        ^
0_0_16739703_6042\Main.java:18: 错误: 需要class, interface或enum
        x=y;
        ^
0_0_16739703_6042\Main.java:19: 错误: 需要class, interface或enum
        y=temp-(a/b)*y;
        ^
0_0_16739703_6042\Main.java:20: 错误: 需要class, interface或enum
        return g;
        ^
0_0_16739703_6042\Main.java:21: 错误: 需要class, interface或enum
    }
    ^
0_0_16739703_6042\Main.java:27: 错误: 需要class, interface或enum
    cin>>T;
    ^
0_0_16739703_6042\Main.java:28: 错误: 需要class, interface或enum
    int m[55],a[55],a1,r1,a2,r2;
    ^
0_0_16739703_6042\Main.java:29: 错误: 需要class, interface或enum
    bool Find;
    ^
0_0_16739703_6042\Main.java:30: 错误: 需要class, interface或enum
    while(T--)
    ^
0_0_16739703_6042\Main.java:33: 错误: 需要class, interface或enum
        for(int i=0; i<n; i++) cin>>m[i];
        ^
0_0_16739703_6042\Main.java:33: 错误: 需要class, interface或enum
        for(int i=0; i<n; i++) cin>>m[i];
                     ^
0_0_16739703_6042\Main.java:33: 错误: 需要class, interface或enum
        for(int i=0; i<n; i++) cin>>m[i];
                          ^
0_0_16739703_6042\Main.java:34: 错误: 需要class, interface或enum
        for(int i=0; i<n; i++) cin>>a[i];
        ^
0_0_16739703_6042\Main.java:34: 错误: 需要class, interface或enum
        for(int i=0; i<n; i++) cin>>a[i];
                     ^
0_0_16739703_6042\Main.java:34: 错误: 需要class, interface或enum
        for(int i=0; i<n; i++) cin>>a[i];
                          ^
0_0_16739703_6042\Main.java:35: 错误: 需要class, interface或enum
        a1=m[0];
        ^
0_0_16739703_6042\Main.java:36: 错误: 需要class, interface或enum
        r1=a[0];
        ^
0_0_16739703_6042\Main.java:37: 错误: 需要class, interface或enum
        Find=false;
        ^
0_0_16739703_6042\Main.java:38: 错误: 需要class, interface或enum
        for(int i=1; i<n; i++)
        ^
0_0_16739703_6042\Main.java:38: 错误: 需要class, interface或enum
        for(int i=1; i<n; i++)
                     ^
0_0_16739703_6042\Main.java:38: 错误: 需要class, interface或enum
        for(int i=1; i<n; i++)
                          ^
0_0_16739703_6042\Main.java:41: 错误: 需要class, interface或enum
            r2=a[i];
            ^
0_0_16739703_6042\Main.java:42: 错误: 需要class, interface或enum
            int g,x,y,c=r2-r1;
            ^
0_0_16739703_6042\Main.java:43: 错误: 需要class, interface或enum
            g=extend_gcd(a1,a2,x,y);
            ^
0_0_16739703_6042\Main.java:44: 错误: 需要class, interface或enum
            if(c%g!=0) Find=true;
            ^
0_0_16739703_6042\Main.java:45: 错误: 需要class, interface或enum
            r1+=a1*((x*(c/g)%a2+a2)%a2);
            ^
0_0_16739703_6042\Main.java:46: 错误: 需要class, interface或enum
            a1=a1*a2/g;
            ^
0_0_16739703_6042\Main.java:47: 错误: 需要class, interface或enum
            r1=(r1%a1+a1)%a1;
            ^
0_0_16739703_6042\Main.java:48: 错误: 需要class, interface或enum
        }
        ^
0_0_16739703_6042\Main.java:50: 错误: 需要class, interface或enum
        if(Find) cout<<-1<<endl;
        ^
0_0_16739703_6042\Main.java:51: 错误: 需要class, interface或enum
        else printf("Case %d: %d",cas++,r1);
        ^
0_0_16739703_6042\Main.java:52: 错误: 需要class, interface或enum
    }
    ^
0_0_16739703_6042\Main.java:54: 错误: 需要class, interface或enum
}
^
40 个错误


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 05:45:46, Gzip enabled