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_15032141_8346\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_15032141_8346\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_15032141_8346\Main.java:2: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_15032141_8346\Main.java:3: 错误: 非法字符: '#'
#include <cstdlib>
^
0_0_15032141_8346\Main.java:4: 错误: 非法字符: '#'
#include <cstring>
^
0_0_15032141_8346\Main.java:5: 错误: 非法字符: '#'
#include <cmath>
^
0_0_15032141_8346\Main.java:6: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_15032141_8346\Main.java:8: 错误: 需要class, interface或enum
typedef long long ll;
^
0_0_15032141_8346\Main.java:9: 错误: 需要class, interface或enum
const int maxn = 1000005;
^
0_0_15032141_8346\Main.java:10: 错误: 需要class, interface或enum
const int mod = 20100501;
^
0_0_15032141_8346\Main.java:11: 错误: 需要class, interface或enum
bool isPrime[maxn * 2];
^
0_0_15032141_8346\Main.java:12: 错误: 需要class, interface或enum
int prime[maxn * 2];
^
0_0_15032141_8346\Main.java:13: 错误: 需要class, interface或enum
int len,n,m;
^
0_0_15032141_8346\Main.java:14: 错误: 需要class, interface或enum
ll ans;
^
0_0_15032141_8346\Main.java:15: 错误: 需要class, interface或enum
void getPrime(int n)//筛素数
^
0_0_15032141_8346\Main.java:18: 错误: 需要class, interface或enum
    memset(isPrime,1,sizeof(isPrime));
    ^
0_0_15032141_8346\Main.java:19: 错误: 需要class, interface或enum
    isPrime[0] = isPrime[1] = 0;
    ^
0_0_15032141_8346\Main.java:20: 错误: 需要class, interface或enum
    for(int i = 2;i <= n;i++)
    ^
0_0_15032141_8346\Main.java:20: 错误: 需要class, interface或enum
    for(int i = 2;i <= n;i++)
                  ^
0_0_15032141_8346\Main.java:20: 错误: 需要class, interface或enum
    for(int i = 2;i <= n;i++)
                         ^
0_0_15032141_8346\Main.java:25: 错误: 需要class, interface或enum
            for(int j = 2 * i;j <= n;j += i)
            ^
0_0_15032141_8346\Main.java:25: 错误: 需要class, interface或enum
            for(int j = 2 * i;j <= n;j += i)
                              ^
0_0_15032141_8346\Main.java:25: 错误: 需要class, interface或enum
            for(int j = 2 * i;j <= n;j += i)
                                     ^
0_0_15032141_8346\Main.java:28: 错误: 需要class, interface或enum
            }
            ^
0_0_15032141_8346\Main.java:35: 错误: 需要class, interface或enum
    while(n)
    ^
0_0_15032141_8346\Main.java:38: 错误: 需要class, interface或enum
        num += n;
        ^
0_0_15032141_8346\Main.java:39: 错误: 需要class, interface或enum
    }
    ^
0_0_15032141_8346\Main.java:41: 错误: 需要class, interface或enum
}
^
0_0_15032141_8346\Main.java:45: 错误: 需要class, interface或enum
    scanf("%d %d",&n,&m);
    ^
0_0_15032141_8346\Main.java:46: 错误: 需要class, interface或enum
}
^
0_0_15032141_8346\Main.java:50: 错误: 需要class, interface或enum
    for(int i = 0;i < len && prime[i] <= (n + m);i++)
    ^
0_0_15032141_8346\Main.java:50: 错误: 需要class, interface或enum
    for(int i = 0;i < len && prime[i] <= (n + m);i++)
                  ^
0_0_15032141_8346\Main.java:50: 错误: 需要class, interface或enum
    for(int i = 0;i < len && prime[i] <= (n + m);i++)
                                                 ^
0_0_15032141_8346\Main.java:53: 错误: 需要class, interface或enum
        while(nm % prime[i] == 0)
        ^
0_0_15032141_8346\Main.java:56: 错误: 需要class, interface或enum
            cnt++;
            ^
0_0_15032141_8346\Main.java:57: 错误: 需要class, interface或enum
        }
        ^
0_0_15032141_8346\Main.java:59: 错误: 需要class, interface或enum
        for(int j = 1;j <= cnt;j++)
        ^
0_0_15032141_8346\Main.java:59: 错误: 需要class, interface或enum
        for(int j = 1;j <= cnt;j++)
                      ^
0_0_15032141_8346\Main.java:59: 错误: 需要class, interface或enum
        for(int j = 1;j <= cnt;j++)
                               ^
0_0_15032141_8346\Main.java:62: 错误: 需要class, interface或enum
            if(ans >= mod)
            ^
0_0_15032141_8346\Main.java:64: 错误: 需要class, interface或enum
        }
        ^
0_0_15032141_8346\Main.java:67: 错误: 需要class, interface或enum
}
^
0_0_15032141_8346\Main.java:71: 错误: 需要class, interface或enum
    scanf("%d",&t);
    ^
0_0_15032141_8346\Main.java:72: 错误: 需要class, interface或enum
    getPrime(2 * maxn);
    ^
0_0_15032141_8346\Main.java:73: 错误: 需要class, interface或enum
    while(t--)
    ^
0_0_15032141_8346\Main.java:76: 错误: 需要class, interface或enum
        solve();
        ^
0_0_15032141_8346\Main.java:77: 错误: 需要class, interface或enum
    }
    ^
0_0_15032141_8346\Main.java:79: 错误: 需要class, interface或enum
}
^
48 个错误


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-22 16:59:33, Gzip enabled